复制代码number,string,booleanvar num = 10;var str = "hello world";var b = true;//typeof console.log(typeof num); //type+变量名:可以查询当前变量的类型