diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 9ffab9a861..0ef0028d83 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -1861,6 +1861,7 @@ "Array indexes are written in the same bracket notation that strings use, except that instead of specifying a character, they are specifying an entry in the array. Like strings, arrays use zero-based indexing, so the first element in an array is element 0.", "Example", "
var array = [1,2,3];
array[0]; // equals 1
var data = array[1]; // equals 2
", + "Note
There shouldn't be any spaces between the array name and the square brackets, like array [0]. Although JavaScript is able to process this correctly, this may confuse other programmers reading your code.", "

Instructions

", "Create a variable called myData and set it to equal the first value of myArray using bracket notation." ], @@ -1910,6 +1911,7 @@ "Unlike strings, the entries of arrays are mutable and can be changed freely.", "Example", "
var ourArray = [3,2,1];
ourArray[0] = 1; // equals [1,2,1]
", + "Note
There shouldn't be any spaces between the array name and the square brackets, like array [0]. Although JavaScript is able to process this correctly, this may confuse other programmers reading your code.", "

Instructions

", "Modify the data stored at index 0 of myArray to a value of 3." ], @@ -1958,6 +1960,7 @@ "One way to think of a multi-dimensional array, is as an array of arrays. When you use brackets to access your array, the first set of brackets refers to the entries in the outer-most (the first level) array, and each additional pair of brackets refers to the next level of entries inside.", "Example", "
var arr = [
[1,2,3],
[4,5,6],
[7,8,9],
[[10,11,12], 13, 14]
];
arr[3]; // equals [[10,11,12], 13, 14]
arr[3][0]; // equals [10,11,12]
arr[3][0][1]; // equals 11
", + "Note
There shouldn't be any spaces between the array name and the square brackets, like array [0][0] and even this array [0] [0] is not allowed. Although JavaScript is able to process this correctly, this may confuse other programmers reading your code.", "

Instructions

", "Using bracket notation select an element from myArray such that myData is equal to 8." ],