<!DOCTYPE html>
<html>
<head>
<title>数组Array</title>
</head>
<body>
<script type="text/javascript">
<!-- 创建 -->
var shoping = ['香蕉','苹果','牛奶'];
// alert(shoping)
// alert(typeof shoping)
console.log(shoping);
// 访问
var item1 = shoping[0];
console.log(item1);
// 修改
shoping[0] = '榴莲';
console.log[shoping];
// 访问数组的长度
console.log('数组的长度:'shoping.length);
</script>
</body>
</html>