[Solved] Javascript function declaration issue [duplicate]
this is the issue about the scope where the functions has been declared. if you run this code in browser it will work all fine, as both function and function expression are declared in global scope. but here in fiddle it’s failing as function expression has been assigned to a global variable ‘foo2’ so it’s … Read more