Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Let vs var
Message
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Titre:
Let vs var
Divers
Thread ID:
01654397
Message ID:
01654397
Vues:
60
Hi everybody,

In one of the code examples in StackOverflow I saw let operator used instead of var. I did then a quick Google Search and I understood the difference between let and var as VFP difference between public and local variables. So, if I needed a variable just in the particular method I started to use let.

I noticed that my colleague reverted back all "let" I used into "var" and in a few cases into "const". Do you know what may be his reasoning? Is let a universal JavaScript operator? What do you normally use in your code?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform