revised description for challenge
parent
33c40cce35
commit
cee59a149f
|
@ -563,10 +563,13 @@
|
||||||
"id": "cf1111c1c16feddfaeb3bdef",
|
"id": "cf1111c1c16feddfaeb3bdef",
|
||||||
"title": "Concatenate Arrays with .concat",
|
"title": "Concatenate Arrays with .concat",
|
||||||
"description": [
|
"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.",
|
"<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>:",
|
"Here are examples of <code>concat</code> being used to concatenate arrays:",
|
||||||
"<code>newArray = oldArray.concat(otherArray);</code>",
|
"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>."
|
"Use <code>.concat()</code> to concatenate <code>concatMe</code> onto the end of <code>oldArray</code> and assign it to <code>newArray</code>."
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
|
|
Loading…
Reference in New Issue