forked from devleague/ArrayExercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_arrays.js
58 lines (26 loc) · 1.05 KB
/
build_arrays.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* LEVEL 1 - Standard Arrays
**/
// Create an empty array.
var a = [];
// Create an array of the colors of the rainbow.
var rainbowColors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"];
// Create an array of gems.
var gems = ["diamond", "ruby"];
// Create an array of military ranks.
var ranks = ["caporal", "sergent", "leuteneant"];
// Create an array of road signs.
var signs = ["stop"];
// Create an array containing components of a tree.
var tree = ["roots", "leaf"];
// Create an array of prime numbers less than 20.
// Create an array of words programmers typically say while programming.
// Create an array of elements of the periodic table.
// Create an array representing the coins currently in your pocket.
// Create an array of items you bring to class daily.
// Create an array of web developer role titles.
// Create an array of good luck charms.
// Create an array of mythical animals.
// Create an array of drinks.
// Create an array of emoticons.
// Create an array with the letters of the word 'array'.