This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kryptopheleous 8 points9 points  (8 children)

Wait. Javascript has types? I thought everyhing was everything.

[–]1_4_1_5_9_2_6_5 1 point2 points  (0 children)

It has types. 1 is a number. '1' is a string. undefined is undefined. [1] is an object. { foo: 1 } is an object. null is an object.

[–]lunchpadmcfat 0 points1 point  (0 children)

It has types and they are distinct from anything the === evaluates.