当前位置:网站首页>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 
边栏推荐
- Bat (batch processing) processing special symbols (exclamation point, percent sign), etc
- Common troubleshooting tools and analysis artifacts are worth collecting
- Promise. All capture error
- Menu double linkage effect in uniapp
- Heartless sword Chinese English bilingual poem 001 Love
- Cv2.rectangle() picture frame
- 【Matlab印刷字符识别】OCR印刷字母+数字识别【含源码 1861期】
- Latex various arrows / arrows with text labels / variable length arrows
- 337. house raiding III
- .NET C#基础(6):命名空间 - 有名字的作用域
猜你喜欢

Flutter Container组件

Web API、DOM

1266_ Implementation analysis of FreeRTOS scheduler startup code
![[Xunwei dry goods] opencv test of Godson 2k1000 development board](/img/94/312bb1f0d5e8d49506f659ad23cd3a.jpg)
[Xunwei dry goods] opencv test of Godson 2k1000 development board
![[deploy private warehouse based on harbor] 3 deploy harbor](/img/cd/be68a430e86b4b23ad93b42a338f00.jpg)
[deploy private warehouse based on harbor] 3 deploy harbor

Biweekly investment and financial report: capital rush yuan universe game

教育专家王中泽老师多年经验分享:家庭教育不是附庸品

Leetcode-104. Maximum Depth of Binary Tree

The difference between arrow function and ordinary function

Senior openstacker - Bloomberg, vexxhost upgraded to the Gold member of openinfra Foundation
随机推荐
Quality-aware Feature Aggregation Networkfor Robust RGBT Tracking
byte和bit的区别
[并发进阶]——线程池总结
Cross-Modal Pattern-Propagation for RGB-T Tracking
Modular notes
ESP32学习笔记(49)——ESP-WIFI-MESH接口使用
[deploy private warehouse based on harbor] 2 machine preparation
Leetcode-141. Linked List Cycle
教育专家王中泽老师多年经验分享:家庭教育不是附庸品
saltstack部署lnmp
Promise. All capture error
Senior openstacker - Bloomberg, vexxhost upgraded to gold member of openinfra Foundation
Error occurred in pycharm DeprecatedEnv: Env FrozenLake-v0 not found (valid versions include [‘FrozenLake-v1‘])
3.1 测试函数的命名规则
Shuttle inside and outside margins
421. maximum XOR value of two numbers in the array
mybaits-puls 在xml文件中写sql语句 会报错 Invalid bound statement (not found):
Method to determine whether it is an array
Common troubleshooting tools and analysis artifacts are worth collecting
微信小程序开发(原生和uniapp)DOM标签对比介绍