parent
a4f810e845
commit
de30ac869c
|
@ -3614,7 +3614,7 @@
|
|||
"id": "56533eb9ac21ba0edf2244c3",
|
||||
"title": "Assignment with a Returned Value",
|
||||
"description": [
|
||||
"If you'll recall from our discussion of <a href=\"storing-values-with-the-assignment-operator\" target=\"_blank\">Storing Values with the Assignment Operator</a>, everything to the right of the equal sign is resolved before the value is assigned. This means we can take the return value of a function and assign it to a variable.",
|
||||
"If you'll recall from our discussion of <a href=\"javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator\" target=\"_blank\">Storing Values with the Assignment Operator</a>, everything to the right of the equal sign is resolved before the value is assigned. This means we can take the return value of a function and assign it to a variable.",
|
||||
"Assume we have pre-defined a function <code>sum</code> which adds two numbers together, then: ",
|
||||
"<code>ourSum = sum(5, 12);</code>",
|
||||
"will call <code>sum</code> function, which returns a value of <code>17</code> and assigns it to <code>ourSum</code> variable.",
|
||||
|
|
Loading…
Reference in New Issue