What is the double-dot operator (..) in Javascript?

mattbasta picture mattbasta · Nov 18, 2010 · Viewed 13k times · Source

I'm doing some work with the Parser API in Spidermonkey. The docs show that there's a binary operator ... Anybody have any idea what this is/does? I'd love to know. I've never seen it before. If I were forced to guess, I'd have to say it's something with E4X, but that's only because I know nothing about E4X.

Answer

kennebec picture kennebec · Nov 18, 2010

Not to be confused with the decimal point and dot:

var val= 1000..toExponential()