当前位置:网站首页>(JS) isnan() method determines the reason why undefined is true
(JS) isnan() method determines the reason why undefined is true
2022-06-29 11:12:00 【Yu Cainiao, who asked not to be named】
Use isNaN() Judgment is not NaN when , This method is used Number() Method to make a conversion , Any non number is cast ,undefined Converted to NaN, So show true
console.log(isNaN(undefined)) //true
isNaN() Conversion except null And array types are converted to numbers 0 outside , Other non numeric types will be converted to NaN
character string
console.log(isNaN("qigeyu")) //true
object
console.log(isNaN({
})) //true
边栏推荐
- Graduation season · advanced technology Er - workers in the workplace
- By asp Net core downloading files according to the path
- (JS)数组排平(flat)
- Specific method and example program of Siemens s7-200smart control stepping motor
- Please tell me about the Flink SQL batch task, two or more tables join (inner join or outer join
- Memory allocation - static storage stack heap and static variable
- 直击产业落地!飞桨重磅推出业界首个模型选型工具
- Google Earth engine (GEE) - Gedi L2a vector canopy top height (version 2) global ecosystem data set
- 嵌入式学习书籍推荐[通俗易懂]
- (JS)筛选出对象中value大于2的key
猜你喜欢

Course design for the end of the semester: product sales management system based on SSM

Data analysis method and Thinking: funnel analysis

BS-GX-018 基于SSM实现在校学生考试系统

世界上第一个“半机械人”去世,改造自己只为“逆天改命”

What happened during the MySQL installation?

Lizuofan, co-founder of nonconvex: Taking quantification as his lifelong career

Free books! The best-selling book "Introduction and practice of OpenCV image processing" has been completed

Google Earth engine (GEE) - Gedi L2a vector canopy top height (version 2) global ecosystem data set

Online text filter less than specified length tool

misc3~7
随机推荐
Xiaomi mobile phone - Unlock BL + open root permission
Shell 中你不得不熟知的变量运用
BS-GX-018 基于SSM实现在校学生考试系统
Modbustcp protocol network learning single channel infrared module (double-layer board)
Uboot for embedded driver development -- common command parameters in uboot
西门子S7-200SMART控制步进电机的具体方法及示例程序
云原生开发必备:首个通用无代码开发平台 iVX 编辑器
(JS)迭代器模式
He was in '98. I can't play with him
《Datawhale推荐系统教程》来了!
Thoroughly understand JVM Series 7: what is the flow process of objects in the generational model?
Recommended embedded learning books [easy to understand]
Numeric Keypad
最后的 48 小时!云 XR 专题赛邀你一起绽放精彩,我们赛场见!
STM32F1与STM32CubeIDE编程实例-超声波测距传感器驱动
(JS)数组去除重复
那些大佬经常在bash 命令行终端不经意间666飞起的必备操作
(JS)手写bind函数
csdn涨薪秘籍之腾讯自动化软件测试面试题(含答案)
5.移植uboot-设置默认环境变量,裁剪,并分区