It seems effective to identify if a variable is defined as a function (either var f = function () {... or function f() {...) or not and whine if it switches or...
Icebox, You cannot avoid having at least one global variable name. The only way a variable stops being global is from containment by a function, but at some...
JSLint doesn't report any error, because "foos" is considered global. Any suggestion to avoid that error? Thanks in advance, Alberto ... "use strict"; function...
JSLint now warns about arguments.callee and arguments.caller. These will not be available in future editions of the language, so it is best to start avoiding...
Marcel, String replace would certainly be faster, because such instructions pass to the same code base on which the JavaScript interpreter sits. String...
Hello JavaScript enthusiasts, I'm the organizer of the Strange Loop conference in St. Louis. This year's conference will contain a number of interesting...
Marcel, I did consider those. The limitation of indexOf method is that it can only be used once without altering your source data, and regular expression...
Hi Austin, It's hard to tell why it's slower/faster without checking the algorithm implemented for slice on different engines. I did some background research ...
Group, I am trying to figure out why slice appears to be slower when executed upon a large string than merely pointing to a group of indexes. My presumption...
I mostly agree with the post in that the style's available from a language are resultant from the syntax rules and allowances provided by the interpretation of...
It appears the comparison I had modified for testing purposes was comparing a value to 0, for which the Lint requires === regardless of the setting of eqeqeq....
Harry, Thanks for your time. In trying a reduced test case on the web version, I do see it working correctly. I will re-run my original test case and update...
... if (2 == 2) { } I've also run the above in Widget Tester using JSLint edition 2010-08-25. I am seeing correct behaviour in both cases, with eqeqeq set to...
... if (2 == 2) { } I've just run the above in Widget Tester and in the version of JSLint at http://www.JSLint.com/ . Both use edition 2010-08-28. I am seeing...
I was testing a command line version of JSlint and noticed that == and != are disallowed no matter what I set eqeqeq to. i am running the version from 25 Aug...
I agree about the leading dot- it is an obvious hint that the line continues the one above it. I dislike the trailing dot on the previous line. I think DC...
... I would prefer this as well. My colleagues and I made a conscious decision to use a trailing dot to indicate line continuation, which turned out positive...
... As a C coder, I prefer the following: function func1(foo) { var bar = foo .replace('o', '0') .replace('a', '4'); return bar; } In my opinion, the dot...
Couldn't it be optional? I believe this is useful when indenting long chain of methods like some popular JS frameworks do. The following although correct...
JSLint now requires that there be no whitespace or line break between a . and a property name. This has always been a good practice, and is now especially...
TC39 is currently discussing this problem: Suppose you mistype ';' as '.'. var x=foo. if (a>b) -bar; It will be read as var x = foo.if(a > b) - bar; ES3 will...
George, To be fair it is unlikely that Unicode will become a functional part of the web, content aside, until RFC 3897 gains some traction over RFC 3896, which...