@ -889,7 +889,7 @@
|
|||||||
"title": "Generate Random Whole Numbers with JavaScript",
|
"title": "Generate Random Whole Numbers with JavaScript",
|
||||||
"difficulty":"9.9828",
|
"difficulty":"9.9828",
|
||||||
"description":[
|
"description":[
|
||||||
"It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number.",
|
"It's great that we can create random decimal numbers, but it's even more useful if we use it to generate a random whole number.",
|
||||||
"To achieve this we can multiply the random number by ten and use the <code>Math.floor()</code> to convert the decimal number to a whole number",
|
"To achieve this we can multiply the random number by ten and use the <code>Math.floor()</code> to convert the decimal number to a whole number",
|
||||||
"This technique gives us a whole number between zero and nine",
|
"This technique gives us a whole number between zero and nine",
|
||||||
"Example:",
|
"Example:",
|
||||||
|
@ -749,7 +749,7 @@
|
|||||||
"title": "Add Images to your Website",
|
"title": "Add Images to your Website",
|
||||||
"difficulty": 1.17,
|
"difficulty": 1.17,
|
||||||
"description": [
|
"description": [
|
||||||
"You can add images to your website by using the <code>img</code> element, and point to an specific image's URL using the <code>src</code> attribute.",
|
"You can add images to your website by using the <code>img</code> element, and point to a specific image's URL using the <code>src</code> attribute.",
|
||||||
"An example of this would be <code><img src=\"www.your-image-source.com/your-image.jpg\"></code>. Note that in most cases, <code>img</code> elements are self-closing.",
|
"An example of this would be <code><img src=\"www.your-image-source.com/your-image.jpg\"></code>. Note that in most cases, <code>img</code> elements are self-closing.",
|
||||||
"Try it with this image: <code>https://bit.ly/fcc-relaxing-cat</code>."
|
"Try it with this image: <code>https://bit.ly/fcc-relaxing-cat</code>."
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user