语法:

typeof 变量 中间用空格分开
var num = 10;
console.log(typeof num);——>number
var str = ‘pink老师’;
console.log(typeof str);——>string
var flag = true;
console.log(typeof flag);——>boolean
var vari = undefined;
console.log(typeof vari);——>undefined
var timer = null;
console.log(typeof timer);——>object

prompt取过来的值是 字符型的