We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在mdn里 中文版没有**运算符,需要看英文版
**运算符是右结合的 4 ** 3 ** 2 === 4 ** (3 ** 2) // 最终结果是 262144, 而不是 4096
4 ** 3 ** 2 === 4 ** (3 ** 2) // 最终结果是 262144, 而不是 4096
++i ** 30 2 ** 30 //正确 -2 ** 30 //报错
如果要用-2这样的一元表达式,需要用() (-2)**2
(-2)**2
表达式和运算符 Exponentiation (**)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在mdn里 中文版没有**运算符,需要看英文版
**运算符是右结合的
4 ** 3 ** 2 === 4 ** (3 ** 2) // 最终结果是 262144, 而不是 4096
如果要用-2这样的一元表达式,需要用()
(-2)**2
表达式和运算符
Exponentiation (**)
The text was updated successfully, but these errors were encountered: