Fix description Bonfire: Arguments Optional
This commit is contained in:
parent
5b760b7cf3
commit
f391e48ab5
@ -822,8 +822,11 @@
|
||||
"title": "Arguments Optional",
|
||||
"difficulty": "2.22",
|
||||
"description": [
|
||||
"Create a function that sums two arguments together. If only one argument is provided, return a function that expects one additional argument and will return the sum.",
|
||||
"For example, add(2, 3) should return 5, and add(2) should return a function that is waiting for an argument so that <code>var sum2And = add(2); return sum2And(3); // 5</code>",
|
||||
"Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum.",
|
||||
"For example, <code>add(2, 3)</code> should return <code>5</code>, and <code>add(2)</code> should return a function.",
|
||||
"Calling this returned function with a single argument will then return the sum:",
|
||||
"<code>var sumTwoAnd = add(2);</code>",
|
||||
"<code>sumTwoAnd(3)</code> returns <code>5</code>.",
|
||||
"If either argument isn't a valid number, return undefined.",
|
||||
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code."
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user