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
请依次计算下列输出的值:
console.log( +0 == -0 ) console.log( +0 === -0 ) console.log( Object.is(+0, -0) ) console.log( "1" == 1 ) console.log( "1" === 1 ) console.log( Object.is("1", 1) ) console.log( new String("foo") == new String("foo") ) console.log( new String("foo") === new String("foo") ) console.log( Object.is(new String("foo") , new String("foo") ) ) console.log( new String("foo") == "foo" ) console.log( new String("foo") === "foo" ) console.log( Object.is(new String("foo") , "foo" ) ) const a = {} const b = a console.log( a == b ) console.log( a === b ) console.log( Object.is(a, b) ) console.log( NaN == NaN ) console.log( NaN === NaN ) console.log( Object.is(NaN, NaN) )
The text was updated successfully, but these errors were encountered:
下面是我的理解,有什么问题还望指正
console.log( “1” == 1 ) 这里双引号应该切换成英文输入法的,不然运行会出错 console.log( “1” === 1 ) console.log( Object.is(“1”, 1) )
true true false true false false false false false true false false true true true false false true
Sorry, something went wrong.
@RookieDay 非常感谢提醒,已经修改成英字""。
@RookieDay 你给的链接都404了_(:з」∠)_
No branches or pull requests
请依次计算下列输出的值:
The text was updated successfully, but these errors were encountered: