exponentiation operator is stage 4, and thus standard
See original GitHub issueecho '3 ** 4' | eslint --stdin
(in the latest v1.x) results in
<text>
1:5 error Parsing error: Unexpected token *
Presumably something upstream needs updating to be able to parse it, but since it’s stage 4, and in ES2016, it’s pretty urgent to support it.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
The Exponentiation Operator in JavaScript - Marius Schulz
ECMAScript 2016 will likely standardize the exponentiation operator **. Babel and TypeScript 1.7 already support it today.
Read more >Exponentiation (**) - JavaScript - MDN Web Docs - Mozilla
The exponentiation ( ** ) operator returns the result of raising the first operand to the power of the second operand.
Read more >Exponentiation Associativity and Standard Math Notation
Right exponentiation associativity works like this: 2^2^3 == 2^(2^3) == 256 . Many people would say that right associativity is more useful ...
Read more >Exponentiation operator and precedence group - Swift Forums
We propose the addition of ** as the exponentiation operator, assigned to a precedence group named ExponentiationPrecedence that is higher than ...
Read more >Designing an Exponentiation Operator for JavaScript - Bocoup
To design an exponentiation operator for JavaScript, it makes sense ... As of this year, TC39 adopted a 4-stage process for vetting proposed ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need ecmaVersion: 7 to use the exponentiation operator.
On Jul 12, 2017 11:12, “Mikhail Kuznetcov” notifications@github.com wrote: