Skip to main content
3 of 5
edited tags

Why does the global variable exist here, where it was declared only in Module?

Why do the global variables a and b exist without having been created here?

In

f := Module[{a}, a;] 

In

?a 

Out

Global`a 

I don't understand why the global variable a was declared and exists. Sometimes the way Mathematica works feels very confusing to me.

Thank you. :)