-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharray_practice
More file actions
21 lines (11 loc) · 1.3 KB
/
array_practice
File metadata and controls
21 lines (11 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// # 1. Create an array to store 3 words. Then add two more words to the array and print the array on one line.
// # 2. Create an array to store 4 letters. Then change the second letter to a number and print the array on one line.
// # 3. Create an array to store 5 numbers. Then print out each number on separate lines with a while loop.
// # 4. Create an array to store 1 number. Then add three more numbers to the array and print the array on one line.
// # 5. Create an array to store 3 strings with lower case letters. Then change the third string to have all capital letters and print that string on a line.
// # 6. Create an array to store 3 names. Then print out each name on separate lines with a while loop.
// # 7. Create an array to store 2 strings. Then add one string to the array and print the array on one line.
// # 8. Create an array to store 5 numbers. Then change the first number to 10 times its original value and print the array on one line.
// # 9. Create an array to store 2 numbers. Then print out each number on separate lines with a while loop.
// # 10. Create an array to store names of 3 different countries. Then add one more country and print the array one line.
SOLUTIONS: https://github.com/TaylorOD/Deliberate_Practice-JavaScript/blob/master/solution_key/array_practice_solutions.js