当前位置:网站首页>(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
边栏推荐
- Google Earth Engine(GEE)——GEDI L2A Vector Canopy Top Height (Version 2) 全球生态系统数据集
- 历史上的今天:马斯克出生;微软推出 Office 365;蔡氏电路的发明者出生
- Shell 引号和转义从来很少被人注意,但平时写脚本又经常用
- MySQL get table information
- (JS)isNaN()方法判断undefined为true的原因
- Pipeline aggregations管道聚合- parent-2
- misc3~7
- 励志!专科“逆袭”读浙大硕士,3篇SCI,最终成清华博士!
- 【NLP】文本生成专题1:基础知识
- 在编写shell脚本时如何正确姿势地管理临时文件
猜你喜欢

He was in '98. I can't play with him

TTL serial port learning infrared remote control module can be extended to network control

Modbustcp protocol network learning single channel infrared module (medium shell version)

第12周实验---基于FPGA的VGA协议实现

云原生开发必备:首个通用无代码开发平台 iVX 编辑器

misc3~7

what? It's amazing that you can read the whole comic book for free. You can't learn to be a money saver together

9 款好用到爆的 JSON 处理工具,极大提高效率!

QT writing IOT management platform 37- logic design

直击产业落地!飞桨重磅推出业界首个模型选型工具
随机推荐
misc3~7
TTL串口学习型红外遥控模块可扩展成网络控制
(JS)数组的 pop、push、unshift、shift分别是什么?
Multi thread communication between client and server (primary version)
Memory allocation - static storage stack heap and static variable
(JS)捕获错误(异常)
dropout层
(JS)手写深拷贝
非凸联合创始人李佐凡:将量化作为自己的终身事业
nuc980 已成功启动
Thoroughly understand JVM Series 7: what is the flow process of objects in the generational model?
嵌入式驱动开发之uboot---uboot 中的常见命令参数参数
历史上的今天:马斯克出生;微软推出 Office 365;蔡氏电路的发明者出生
MySQL query table field information
NUC980开源项目16-从SPI FLASH(W25Q128)启动
(JS)数组中纯函数
5.移植uboot-设置默认环境变量,裁剪,并分区
[untitled] I am plotting a big event
He was in '98. I can't play with him
Modbustcp protocol network learning single channel infrared module (medium shell version)