内存是用来存什么的 通俗的来说呢,就是用来存 var let function const 声明的变量. 内存的大小 与操作系统有关,64位1.4G 32位0.7G. 为啥内存大小要这么设计,为啥不是越大越好 1.表象原因,1.4G够用了 JS设计之初是作为脚本语言(一次性的执行,执行完毕就直接释放),相对于java,C这些 编写持久性的服务语言(内存一般不受限制)来说,够用了,想想你一次性的定义变量超过1.4G还是有难度的(当然不要耍赖用循环). 2.深层次的原因,JS每回收一次垃圾,会把整个
灯塔(LightHouse) Description As shown in the following figure, If another lighthouse is in gray area, they can beacon each other. For example, in following figure, (B, R) is a pair of lighthouse which can beacon each other, while (B, G), (R, G) are NOT