0

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?

dsign
  • 12,340
  • 6
  • 59
  • 82
  • 1
    [What is the double-dot operator (..) in Javascript?](http://stackoverflow.com/q/4211037/1402846). – Pang Jan 06 '13 at 09:07
  • 1
    Note that it's a very old draft for JavaScript 2.0, not the current version. – JJJ Jan 06 '13 at 09:07
  • 1
    Here'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
  • 1
    None 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 Answers1

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