这套题出的非常糟糕,很多东西跟 js 都无关,比如有好几道题都是 IEEE-754 的标准,还有好几道题都是纯粹的 boolean 运算,再比如 true == 1、false == 0、逗号运算符这些放到 c 都没差别的东西。所以结果就像是这个帖子的说的:
https://news.ycombinator.com/item?id=27660365
pdpi 3 days ago | parent | favorite | on: JavaScript Is Weird
I have plenty of complaints about Javascript, but most of these aren't it. I haven't done any serious javascript in something like 6 years, and I still got most of this right without much effort.
...
换句话说,如果有比较好的 c/c++ 背景,又对 ieee-754 那些东西比较熟,有很大概率是能对更多的。
【 在 hgoldfish (老鱼) 的大作中提到: 】
:
https://jsisweird.com/--
FROM 101.98.83.*