var let = 12 is valid JavaScript (#tilPost)

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 blo…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » var let = 12 is valid JavaScript (#tilPost)." Stefan Judis | Sciencx - Wednesday March 15, 2017, https://www.scien.cx/2017/03/15/var-let-12-is-valid-javascript-tilpost/
HARVARD
Stefan Judis | Sciencx Wednesday March 15, 2017 » var let = 12 is valid JavaScript (#tilPost)., viewed ,<https://www.scien.cx/2017/03/15/var-let-12-is-valid-javascript-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » var let = 12 is valid JavaScript (#tilPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2017/03/15/var-let-12-is-valid-javascript-tilpost/
CHICAGO
" » var let = 12 is valid JavaScript (#tilPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2017/03/15/var-let-12-is-valid-javascript-tilpost/
IEEE
" » var let = 12 is valid JavaScript (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2017/03/15/var-let-12-is-valid-javascript-tilpost/. [Accessed: ]
rf:citation
» var let = 12 is valid JavaScript (#tilPost) | Stefan Judis | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.