Skip to main content
2 of 5
added 7 characters in body
C. E.
  • 71.7k
  • 7
  • 144
  • 279

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. :)