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