From c3e0401c5b2b783eca97e367ee0d12320e56b16f Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sat, 26 Dec 2015 00:11:21 +0530 Subject: [PATCH] Manipulate Arrays With push --- .../basic-javascript.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 e6bece0896..4a601872bd 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -1554,7 +1554,8 @@ "id": "bg9995c9c69feddfaeb9bdef", "title": "Manipulate Arrays With push()", "description": [ - "An easy way to append data to the end of an array is via the push() method. push() takes a value and \"pushes\" it onto the end of the array.", + "An easy way to append data to the end of an array is via the push() function.", + ".push() takes one or more parameter and \"pushes\" it onto the end of the array.", "var arr = [1,2,3];", "arr.push(4);", "// arr is now [1,2,3,4]", @@ -1562,7 +1563,7 @@ "Push [\"dog\", 3] onto the end of the myArray variable." ], "tests": [ - "\nassert((function(d){if(d[2] != undefined && d[0][0] == 'John' && d[0][1] == 23 && d[2][0] == 'dog' && d[2][1] == 3 && d[2].length == 2){return true;}else{return false;}})(myArray), 'message: myArray should now equal [[\"John\", 23], [\"cat\", 2], [\"dog\", 3]].');" + "assert((function(d){if(d[2] != undefined && d[0][0] == 'John' && d[0][1] == 23 && d[2][0] == 'dog' && d[2][1] == 3 && d[2].length == 2){return true;}else{return false;}})(myArray), 'message: myArray should now equal [[\"John\", 23], [\"cat\", 2], [\"dog\", 3]].');" ], "challengeSeed": [ "// Example",