This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Yoshua Wuyts tweeted that var let = 12
is valid JavaScript. Wat? It turns out let
is no reserved word in JavaScript. If you want to dig deeper there is an interesting read on this topic, that was recently released on the Bocoup blog.
Edited: Turns out this is only true in sloppy mode. Thanks Robin!
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Stefan Judis | Sciencx (2017-03-15T11:00:00+00:00) var let = 12 is valid JavaScript (#tilPost). Retrieved from https://www.scien.cx/2017/03/15/var-let-12-is-valid-javascript-tilpost/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.