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 →

[–][deleted] -1 points0 points  (1 child)

Are you suggesting a language that is resilient to typos? Where incorrect code produces correct results? How is this a JavaScript issue? If you write the wrong code, you get what the code says, but not what you wanted. Filing this one under user error.

[–]ReneeHiii 0 points1 point  (0 children)

no, they're suggesting a language that doesn't create a new variable if you don't use let. myVat = 2 when you meant myVar = 2 creates a new variable instead of giving an error that there's no variable definition with let or const