[Info-vax] [OT] The wonders of Javascript...

hb end.of at inter.net
Mon Mar 2 16:34:29 EST 2015


On 03/02/2015 09:28 AM, Simon Clubley wrote:
> Did your simplified example try referencing an undefined standalone
> variable or a non-existant member of an object (which is what I
> was doing) ?

A variable. (I'm not sure what "standalone" should mean in 
this/Javascript context.) In Javascript, referencing a non-existant 
member of an object is not an error. The name or property to 
identify/reference a member of an object is not a variable.

The simplified example was based on the OP:

 >>Turns out that in Javascript integer + undefined variable equals a
 >>silent NaN and not a syntax error:




More information about the Info-vax mailing list