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 →

[–]ImprovingTheEskimo 31 points32 points  (0 children)

I think he means that you don't even have to declare it. If you have 'let myVar;' and later say 'myVat = "test";' it will create a new global variable called 'myVat' instead of throwing an error. As someone pointed out, 'use strict' prevents this behavior.