var x=3 undefined x 3 typeof x 检测变量是某种类型 number 数字类型 var y='feir' underfined y 'feir' 将feir赋值给y typeof y string 字符串类型要用引号扩起来