Variables declared inside a function are local to that function. They don't exist outside it:
func example() {
x := 10 // local to example
}
// x doesn't exist here
Parameters are also local variables. They exist only while the function runs. When the function returns, local variables disappear. This isolation prevents functions from accidentally interfering with each other's data.