(1)声明变量(2)声明数组(2)读取值 (1)声明变量var a;a=10;或者var a =10; (2)声明数组var arr = [1,2,3]; (2)读取值console.log();//读取数组中的某一个值console.log(arr[0]);//获取数组的长度 lengthconsole.log(arr.length)