3 ms·
One addendum. As of JavaScript 1.7 there is yet another way of declaring a variable. It is called let, and makes var work the way it should have worked all al
by btilly 14y ago
One addendum. As of JavaScript 1.7 there is yet another way of declaring a variable. It is called let, and makes var work the way it should have worked all along.
Of course you can't rely on people having JavaScript 1.7 in their browser. And even if their browser supports it, if the script tag is not declared correctly, YOUR JavaScript won't be understood to be JavaScript 1.7. So people avoid JavaScript 1.7 features.
I now return you to your regularly scheduled flame war.
- raganwald 14y ago+1. I think that I edited out a sentence where Nickieben used let as an example of JavaScript people agreeing that var was feciform.
- andrewcooke 14y agook, this is the second hit on google for "feciform" (third is "vomiting feciform matter" while first is "FECI form"). is this really a word? if not, what on earth did you mean?
- chr1 14y agolet is slower than var and the way it's likely to be added in jsNext even is even slower (https://mail.mozilla.org/pipermail/es-discuss/2012-September/024993.html https://mail.mozilla.org/pipermail/es-discuss/2012-September...) the very small improvements it provides aren't worth it