All Tracks/top learn arrays and loops/
Đang tải...
Hướng dẫn thử thách
1 / 8

Learn Arrays and Loops Lesson A

Strings and numbers may be our building blocks, but as your scripts get more complex, you're going to need a way to deal with large quantities of them. Luckily, JavaScript has a couple of data types that are used for just that. An array is an ordered collection of items (Strings, numbers, or other things). Arrays are a way to store multiple values in a single variable. They are a special type of object that has a length property and a series of numbered properties. Each numbered property is called an element, and each element can store a value of any type. An example of an array is: ```javascript const fruits = ['apple', 'banana', 'orange']; ```
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.js
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.