zivenday / learning

知识点脑图,js实现,算法实现。
MIT License
1 stars 1 forks source link

typeof('abc')和typeof 'abc'都是string, 那么typeof是操作符还是函数? #57

Open zivenday opened 4 years ago

zivenday commented 4 years ago

typeof不能是一个函数。可能的括号 – 符号typeof(foo)使你认为typeof是一个函数,但在语法上,这些括号不是函数调用 – 它们是用于分组的,就像(2 3)* 2。事实上,你可以添加任何数量的你想要的: