I have got a simple program which I am running first time in a browser. I am on line 6. When I am trying to find out values of a, b - the browser responds with value 'undefined'. But when I am trying to find out value of c, which of course is not present it gives me an error.
My Question is when I am debugging at line 6 - the status of b & c must be same - either both 'undefined' or both 'giving error', because for the program at line no 6, a exists - but both - b & c are ghosts at this state of program, then how is it giving b as undefined and c as error (which of coarse is correct). But, when did the program found out which variables am I using and which not, when I am still in mid, at first half of program, running it first time.