You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
lang-js
substr()is deprecated? It's not, even now, three years later, let alone back in 2009 when you made this comment.substr()may not be marked as deprecated by any popular ECMAScript implementation (I doubt it's not going to disappear anytime soon), but it's not part of the ECMAScript spec. The 3rd edition of the spec mentions it in the non-normative annex in order to "suggests uniform semantics for such properties without making the properties or their semantics part of this standard".substring,substrandslice) is too many, IMO. I always useslicebecause it supports negative indexes, it doesn't have the confusing arg-swapping behavior and its API is similar toslicein other languages.