diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json index a1e9be6dd4f..4476d7c9b5b 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-data-structures.json @@ -107,7 +107,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 usingpush()andunshift()to add'I', 2, 'three'to the beginning of the array and7, '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 usingpush()andunshift()to add'I', 2, 'three'to the beginning of the array and7, 'VIII', 9to the end so that the returned array contains representations of the numbers 1-9 in order." ], "challengeSeed": [ "function mixedNumbers(arr) {", @@ -121,7 +121,7 @@ "console.log(mixedNumbers(['IV', 5, 'six']));" ], "tests": [ - "assert.deepEqual(mixedNumbers(['IV', 5, 'six']), ['I', 2, 'three', 'IV', 5, 'six', 7, 'VIII', '9'], 'message:mixedNumbers([\"IV\", 5, \"six\"])should now return[\"I\", 2, \"three\", \"IV\", 5, \"six\", 7, \"VIII\", \"9\"]');", + "assert.deepEqual(mixedNumbers(['IV', 5, 'six']), ['I', 2, 'three', 'IV', 5, 'six', 7, 'VIII', 9], 'message:mixedNumbers([\"IV\", 5, \"six\"])should now return[\"I\", 2, \"three\", \"IV\", 5, \"six\", 7, \"VIII\", 9]');", "assert.notStrictEqual(mixedNumbers.toString().search(/\\.push\\(/), -1, 'message: ThemixedNumbersfunction should utilize thepush()method');", "assert.notStrictEqual(mixedNumbers.toString().search(/\\.unshift\\(/), -1, 'message: ThemixedNumbersfunction should utilize theunshift()method');" ],