In this example, the var
statement is used to define
the variable sMyFirstName
, so it is created as a variable
at the sayFirstName()
scope. This is proved because the second function
causes an error when it tries to access the variable.