首页 > 试题广场 >

以下使用typeof操作符的代码的输出结果为()varx=t

[单选题]
以下使用 typeof 操作符的代码的输出结果为()
var x = typeof x
var res = typeof typeof x;
console.log(res)
  • "undefined"
  • "object"
  • "string"
  • "number"
1、var 变量提升
2 、typeof *  返回的是字符串形式  typeof undefined =>  "undefined"
发表于 2021-06-19 19:43:04 回复(0)