mercredi 31 août 2016

Declare variable let in javascript ECMAScript6

Why is it possible to declare variable named let when I can't declare const or var. I know I will never do that , but I am just curious if there is reasonable explanation. So I can do:

var let = 5;
let x = 3;
x + let -> 8

Why is this even possible?

Aucun commentaire:

Enregistrer un commentaire