下列表达式中,结果为NaN的是()
123 + null
123 / 0
123 + '1';
123 + undefined;
console.log(123 + null) // 123 console.log(123 / 0) // Infinity (Infinity 是表示正无穷大的数值。-Infinity 是表示负无穷大的数值) console.log(123 + '1') // 1231 String 数据类型 console.log(123 + undefined) // NaN
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题