From 479bf29e0517f00444448c2dcad62155dc8010ce Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sat, 26 Dec 2015 01:18:31 +0530 Subject: [PATCH] Manipulate Arrays With pop --- .../basic-javascript.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 4a601872bd..7eb6dd7094 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -1592,9 +1592,10 @@ "id": "bg9994c9c69feddfaeb9bdef", "title": "Manipulate Arrays With pop()", "description": [ - "Another way to change the data in an array is with the .pop() function. ", - ".pop() is used to \"pop\" a value off of the end of an array. We can store this \"popped off\" variable by performing pop() within a variable declaration.", - "Any type of data structure can be \"popped\" off of an array - numbers, strings, even nested arrays.", + "Another way to change the data in an array is with the .pop() function.", + ".pop() is used to \"pop\" a value off of the end of an array. We can store this \"popped off\" value by assigning it to a variable.", + "Any type of entry can be \"popped\" off of an array - numbers, strings, even nested arrays.", + "For example, for the code
var oneDown = [1, 4, 6].pop();
the variable oneDown now holds the value 6 and the array becomes [1, 4].", "

Instructions

", "Use the .pop() function to remove the last item from myArray, assigning the \"popped off\" value to removedFromMyArray." ],