fixed issue #2940: replaced and with an
This commit is contained in:
@@ -205,7 +205,7 @@
|
|||||||
"title":"Condense arrays with .reduce",
|
"title":"Condense arrays with .reduce",
|
||||||
"difficulty":0,
|
"difficulty":0,
|
||||||
"description":[
|
"description":[
|
||||||
"Reduce can be useful for condensing and array or numbers into one value.",
|
"Reduce can be useful for condensing an array or numbers into one value.",
|
||||||
"<code>var singleVal = array.reduce(function(previousVal, currentVal){</code>",
|
"<code>var singleVal = array.reduce(function(previousVal, currentVal){</code>",
|
||||||
"<code>  return(previousVal+currentVal);</code>",
|
"<code>  return(previousVal+currentVal);</code>",
|
||||||
"<code>});</code>"
|
"<code>});</code>"
|
||||||
|
|||||||
Reference in New Issue
Block a user