Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Let vs var
Message
 
 
To
All
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Title:
Let vs var
Miscellaneous
Thread ID:
01654397
Message ID:
01654397
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform