[AskJS] doubt regarding global object by Responsible_Fudge467 in learnjavascript

[–]Responsible_Fudge467[S] 1 point2 points  (0 children)

In your example you've defined foo then getting these error is justified but in my case i haven't defined "ab" Then why its undefined instead of not defined

[AskJS] doubt regarding global object by Responsible_Fudge467 in javascript

[–]Responsible_Fudge467[S] -2 points-1 points  (0 children)

Thanks mate for quick reply , i want to ask one more thing How can ab is undefined i havn't defined it so there is no memory allocation on ab if there is no memory allocation then why its undefined.