There are several tokens in this page that I have no idea what are used for in Javascript. Those are "->", "::", "..", "...". What are they used for? Or are they just some kind of vestigial feature that never got mainstream?
Asked
Active
Viewed 90 times
0
-
1[What is the double-dot operator (..) in Javascript?](http://stackoverflow.com/q/4211037/1402846). – Pang Jan 06 '13 at 09:07
-
1Note that it's a very old draft for JavaScript 2.0, not the current version. – JJJ Jan 06 '13 at 09:07
-
1Here's [a more recent list of operators](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators) – Joseph Jan 06 '13 at 09:08
-
1[What does ‘::’ (double colon) do in javascript for events?](http://stackoverflow.com/q/5715239/1402846). – Pang Jan 06 '13 at 09:10
-
1None of these punctuators appear on page 19 of the more recent [ECMA-262 spec](http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf). – Asad Saeeduddin Jan 06 '13 at 09:12
-
Thanks everybody for pointing me to the ECMA standard! – dsign Jan 06 '13 at 09:18
1 Answers
1
This is the February 1999 Draft of JavaScript 2.0! https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators is a nice handy list from the new spec.
JavaScript is really called ECMAScript now, and it's spec is here: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf.

Rich Bradshaw
- 71,795
- 44
- 182
- 241
-
Note that I've made this community wiki as it's just formalising the answers from above. – Rich Bradshaw Jan 06 '13 at 09:31