动态类型

var foo = 42;    // foo是 Number 类型
var foo = "bar"; // foo 是 String 类型
var foo = true;  // foo 是 Boolean 类型