Skip to content
English

Arrays hold lists

  • An array is an ordered list of values in [ ... ].
  • Reach an item by its index, counting from 0: arr[0] is the first.
  • .length tells you how many items there are.
中文

数组存放列表

  • 数组(array)是放在 [ ... ] 里的一串有序的值。
  • 用索引(index)取出元素,从 0 开始数:arr[0] 是第一个。
  • .length 告诉你有多少个元素。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩