Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exponentiation operator #825

Closed
yukulele opened this issue Dec 8, 2015 · 3 comments
Closed

exponentiation operator #825

yukulele opened this issue Dec 8, 2015 · 3 comments

Comments

@yukulele
Copy link

yukulele commented Dec 8, 2015

Don't works with future exponentiation operator ** (es7)

this

var square=x ** 2;

is converted to this

var square = x * * 2;
@bitwiseman bitwiseman added this to the v1.6.0 milestone Dec 8, 2015
@yukulele
Copy link
Author

yukulele commented Feb 1, 2016

sorry but after reading this article http://www.2ality.com/2016/02/exponentiation-operator.html
I realize there is also an assignment operator **=

example:

var a = 4;
a **= 3;
console.log(a); //64

@bitwiseman
Copy link
Member

Please file a new issue. 😄

@yukulele
Copy link
Author

yukulele commented Feb 1, 2016

#864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants