From 5916809dd966cdc2d6136ae01dd6ccfcefd4fe31 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Sun, 14 Feb 2016 12:18:20 -0800 Subject: [PATCH] Clarify join method challenge with better example --- .../object-oriented-and-functional-programming.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index 997450c4cf..f8c6b78143 100644 --- a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -579,8 +579,8 @@ "title": "Join Strings with .join", "description": [ "We can use the join method to join each element of an array into a string separated by whatever delimiter you provide as an argument.", - "The following is an example of using join to join all of the elements of an array into a string with all the elements separated by word `Na`:", - "
var joinMe = [\"Na \", \"Na \", \"Na \", \"Na \", \"Batman!\"];
var joinedString = joinMe.join(\"Na \");
console.log(joinedString);
", + "The following is an example of using join to join all of the elements of an array into a string with all the elements separated by word and:", + "
var veggies = [\"Celery\", \"Radish\", \"Carrot\", \"Potato\"];
var salad = veggies.join(\" and \");
console.log(salad); // \"Celery and Radish and Carrot and Potato\"
", "Use the join method to create a string from joinMe with spaces in between each element and assign it to joinedString." ], "challengeSeed": [