Skip to content

Commit

Permalink
revised description for challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyqbui committed Nov 29, 2016
1 parent 33c40cc commit cee59a1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,13 @@
"id": "cf1111c1c16feddfaeb3bdef",
"title": "Concatenate Arrays with .concat",
"description": [
"<code>concat</code> can be used to merge the contents of two arrays into one.",
"<code>concat</code> can be used to merge the contents of two or more arrays into one.",
"<code>concat</code> takes an array as an argument and returns a new array with the elements of this array concatenated onto the end.",
"Here is an example of <code>concat</code> being used to concatenate <code>otherArray</code> onto the end of <code>oldArray</code>:",
"<code>newArray = oldArray.concat(otherArray);</code>",
"Here are examples of <code>concat</code> being used to concatenate arrays:",
"Example 1: <code>otherArray</code> onto the end of <code>oldArray</code>:",
"<blockquote>newArray = oldArray.concat(otherArray);</blockquote>",
"Example 2: <code>newArray</code> with all the elements of <code>arr1</code>, <code>arr2</code>, and <code>arr3</code>:",
"<blockquote>newArray = arr1.concat(arr2, arr3);</blockquote>",
"Use <code>.concat()</code> to concatenate <code>concatMe</code> onto the end of <code>oldArray</code> and assign it to <code>newArray</code>."
],
"challengeSeed": [
Expand Down

0 comments on commit cee59a1

Please sign in to comment.