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
var x, y = 1; x + y = ?
The text was updated successfully, but these errors were encountered:
var x = undifind; var y = 1; undifind + y = NAN
Sorry, something went wrong.
js 中变量定义后没有赋值,默认是undefined ,而 数字 + undefined ,也就是数值型 和其他类型数据运算(非字符串型),会把非数值型数据转换成数值型,所以undefined 被转成 NaN ,NaN 和任何数值运算还是NaN
No branches or pull requests
The text was updated successfully, but these errors were encountered: