fix(curriculum): correct link text (#42143)
* Small language improvement The correct term is assignment operator. * Small language improvement Co-authored-by: Niraj Nandish <nirajnandish@icloud.com> Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>pull/42131/head
parent
b644110bf9
commit
cbb7afd5b8
|
@ -11,9 +11,9 @@ dashedName: generate-random-fractions-with-javascript
|
|||
|
||||
Random numbers are useful for creating random behavior.
|
||||
|
||||
JavaScript has a `Math.random()` function that generates a random decimal number between `0` (inclusive) and not quite up to `1` (exclusive). Thus `Math.random()` can return a `0` but never quite return a `1`
|
||||
JavaScript has a `Math.random()` function that generates a random decimal number between `0` (inclusive) and `1` (exclusive). Thus `Math.random()` can return a `0` but never return a `1`.
|
||||
|
||||
**Note:** Like [Storing Values with the Equal Operator](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator), all function calls will be resolved before the `return` executes, so we can `return` the value of the `Math.random()` function.
|
||||
**Note:** Like [Storing Values with the Assignment Operator](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator), all function calls will be resolved before the `return` executes, so we can `return` the value of the `Math.random()` function.
|
||||
|
||||
# --instructions--
|
||||
|
||||
|
|
Loading…
Reference in New Issue