From fca35c32d5438bff4f0a35dcb907cb0e700b2738 Mon Sep 17 00:00:00 2001 From: cdrainxv Date: Sun, 5 Feb 2017 20:35:18 -0700 Subject: [PATCH] Replaced shift() with unshift() in description --- .../basic-data-structures.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json b/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json index 99e931b68a..16fdc1afff 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json @@ -117,7 +117,7 @@ "
let twentyThree = 'XXIII';
let romanNumerals = ['XXI', 'XXII'];

romanNumerals.unshift('XIX', 'XX');
// now equals ['XIX', 'XX', 'XXI', 'XXII']

romanNumerals.push(twentyThree);
// now equals ['XIX', 'XX', 'XXI', 'XXII', 'XXIII']", "Notice that we can also pass variables, which allows us even greater flexibility in dynamically modifying our array's data.", "
", - "We have defined a function, mixedNumbers, which we are passing an array as an argument. Modify the function by using push() and shift() to add 'I', 2, 'three', to the beginning of the array and 7, 'VIII', '9' to the end so that the returned array contains representations of the numbers 1-9 in order." + "We have defined a function, mixedNumbers, which we are passing an array as an argument. Modify the function by using push() and unshift() to add 'I', 2, 'three' to the beginning of the array and 7, 'VIII', '9' to the end so that the returned array contains representations of the numbers 1-9 in order." ], "challengeSeed": [ "function mixedNumbers(arr) {",