typeof关键字检查数据类型
语法:typeof(变量)
<SCript>
let age=18;
let name="durant";
let flag=true;
console.log(typeof(age));
console.log(typeof(name));
console.log(typeof(flag));
</SCript>
语法:typeof(变量)
<SCript>
let age=18;
let name="durant";
let flag=true;
console.log(typeof(age));
console.log(typeof(name));
console.log(typeof(flag));
</SCript>