Skip to content

输出是什么? ​

javascript
console.log(typeof typeof 1)

A. "number" B. "string" C. "object" D. "undefined"

答案: B

解析: ​

typeof 1 返回 "number"。 typeof "number" 返回 "string"。