From 31957a45e28a8529cd4aefe2de880482159d79fa Mon Sep 17 00:00:00 2001 From: Tomer Ben Rachel Date: Sun, 12 Aug 2018 09:16:56 +0300 Subject: [PATCH] fix(challenges): fixed typo in algorithms and ds --- .../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 18bc603e49..af19e32043 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 @@ -468,7 +468,7 @@ "description": [ "Another huge advantage of the spread operator, is the ability to combine arrays, or to insert all the elements of one array into another, at any index. With more traditional syntaxes, we can concatenate arrays, but this only allows us to combine arrays at the end of one, and at the start of another. Spread syntax makes the following operation extremely simple:", "
let thisArray = ['sage', 'rosemary', 'parsley', 'thyme'];

let thatArray = ['basil', 'cilantro', ...thisArray, 'coriander'];
// thatArray now equals ['basil', 'cilantro', 'sage', 'rosemary', 'parsley', 'thyme', 'coriander']
", - "Using spread syntax, we have just achieved an operation that would have been more more complex and more verbose had we used traditional methods.", + "Using spread syntax, we have just achieved an operation that would have been more complex and more verbose had we used traditional methods.", "
", "We have defined a function spreadOut that returns the variable sentence, modify the function using the spread operator so that it returns the array ['learning', 'to', 'code', 'is', 'fun']." ],