当前位置:网站首页>Mistakes in Niuke JS exercise
Mistakes in Niuke JS exercise
2022-06-11 07:08:00 【Not coriander】
1. var a = parseInt([0,0,1,0,0].join(’’)+1) a The value of is 
stay JS There are only three types of conversion in , Namely :
Convert to Boolean
Convert to number
Convert to string
Four arithmetic sums ==、 Conditional operations are implicitly typed .
Addition operation character string + Numbers Convert a number to a string Such as 111+‘222’=“111222”
Non additive operation character string - x / Numbers Convert string to number Such as ’111’-11=100
2. Which of the following expressions has a value of true?
Any number divided by 0 Will cause errors and terminate program execution . But in JavaScript in , Will return a special value , Therefore, it will not affect the execution of the program .
Than 0 Divide a large number by 0, You will get infinity , therefore js use Infinity To show .
That is to say 1/0 Get is Infinity.isNaN(1/0) The return is false. however isNaN(0/0) Back to you true
3. Here's about JavaScript What is wrong in your description is 
边栏推荐
- 【Matlab图像融合】粒子群优化自适应多光谱图像融合【含源码 004期】
- 1300. the array closest to the target value after transforming the array and
- [MATLAB image encryption and decryption] chaotic sequence image encryption and decryption (including correlation test) [including GUI source code 1862]
- 商汤科技积极复工,将大力投入数字哨兵的产能和部署
- Shell脚本之启动Nacos服务端
- 1190. invert the substring between each pair of parentheses
- Duality-Gated Mutual Condition Network for RGBT Tracking
- About daily report plan
- . Net C Foundation (6): namespace - scope with name
- 12. integer to Roman numeral
猜你喜欢

Shuttle container component

Education expert wangzhongze shared his experience for many years: family education is not a vassal

First day of database

Web API、DOM

Difference between byte and bit
![[并发进阶]——线程池总结](/img/69/dc8146dafc30f8a8efa012b67aa05c.png)
[并发进阶]——线程池总结

一、SQLServer2008安装(带密码)、创建数据库、C#窗体项目测试

Modular notes

Luogu p1091 chorus formation (longest ascending subsequence)

1266_FreeRTOS调度器启动代码实现分析
随机推荐
mybaits-puls 在xml文件中写sql语句 会报错 Invalid bound statement (not found):
生物序列智能分析平台blog(1)
.NET C#基础(6):命名空间 - 有名字的作用域
Leetcode-9.Palindrome Numbber
saltstack的常用模块
[MATLAB image encryption and decryption] chaotic sequence image encryption and decryption (including correlation test) [including GUI source code 1862]
421. maximum XOR value of two numbers in the array
Flutter 内外边距
【Matlab印刷字符识别】OCR印刷字母+数字识别【含源码 1861期】
Transformer Tracking
Graph Attention Tracking
1734. arrangement after decoding XOR
Required reading 1: the larger the pattern, the better they know how to speak
Promises/a+ standard Chinese Translation
Difference between byte and bit
无心剑汉英双语诗001.《爱》
VTK vtkplane and vtkcutter use
一、SQLServer2008安装(带密码)、创建数据库、C#窗体项目测试
Whether the ZABBIX monitoring host is online
337. house raiding III