这是小红书上的一道笔试题目。
首先我们得知道什么是infinity属性,infinity是一个用来存储一个无穷大的数,他不是一个常量,因此,一个无穷大的数加一还是一个无穷大的数。不能用delete和for/in来对他进行操作。
infinity + 1 !== infinity???
最新推荐文章于 2024-06-21 16:03:16 发布
这是小红书上的一道笔试题目。
首先我们得知道什么是infinity属性,infinity是一个用来存储一个无穷大的数,他不是一个常量,因此,一个无穷大的数加一还是一个无穷大的数。不能用delete和for/in来对他进行操作。