Difference between anonymous and named functions?

from this example

x = 1
def hello(y) do
x + y
end

after we declare def, do u mean that only y is bound to the scope of the function alone