Fixes Math.random() description in waypoint
Fixes the description of Math.random() in Javascript waypoint. Math.random() generates a random decimal number between 0 and 1. Closes #4728
This commit is contained in:
parent
764a052624
commit
a24e76675a
@ -1025,7 +1025,7 @@
|
|||||||
"title": "Generate Random Fractions with JavaScript",
|
"title": "Generate Random Fractions with JavaScript",
|
||||||
"description": [
|
"description": [
|
||||||
"Random numbers are useful for creating random behavior.",
|
"Random numbers are useful for creating random behavior.",
|
||||||
"JavaScript has a <code>Math.random()</code> function that generates a random decimal number.",
|
"JavaScript has a <code>Math.random()</code> function that generates a random decimal number between 0 and 1.",
|
||||||
"Change <code>myFunction</code> to return a random number instead of returning <code>0</code>.",
|
"Change <code>myFunction</code> to return a random number instead of returning <code>0</code>.",
|
||||||
"Note that you can return a function, just like you would return a variable or value."
|
"Note that you can return a function, just like you would return a variable or value."
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user