简单教程
提交运行
代码编辑器:
<script> var person = []; person[0] = "John"; person[1] = "Doe"; person[2] = 46; document.write(person[0] + " " + person.length); </script>
运行结果: