1.js里面typeof的写法
(1)在typeof后面直接跟括号,括号里面写具体参数。
console.log(typeof("a"));
(2)在typeof后面空格,然后跟具体参数。
console.log(typeof "a");
2.js里面typeof的返回数据类型
(1)number
(2)string
(3)Boolean
(4)undefined
(5)object
(6)function
(7)symbol(es6)
1.js里面typeof的写法
(1)在typeof后面直接跟括号,括号里面写具体参数。
console.log(typeof("a"));
(2)在typeof后面空格,然后跟具体参数。
console.log(typeof "a");
2.js里面typeof的返回数据类型
(1)number
(2)string
(3)Boolean
(4)undefined
(5)object
(6)function
(7)symbol(es6)