Variable declared and assigned at global scope is undefined when called by a nested return function
When a function is created inside a function, the following code is returning a string with the name variable coming back as undefined. Since this is functionally scoped inside the global scope, I would have expected the name variable from the global scope to be found and used. Is the issue that parameter naming is… Read More Variable declared and assigned at global scope is undefined when called by a nested return function