I trying to learn how to program using node.js and javascript, one the assignment for my class is to create a javascript file that generate random number.
these are the instructions of the assignment. Can somebody explain me how can I start this problem, how can I print color in the console, or how to create a js file that outputs a html document.
Create a file named randoms.js that outputs an HTML document that lists 10 random colors. The generated document should look like the following except the hexadecimal color values should be random. Each time you run the program, it should generate 10 different colors values
<html>
<head>
<meta charset="UTF-8">
<title>Ten Random Colors</title>
</head>
<body>
<ul>
<li style="color: #ae3d04">ae3d04</li>
<li style="color: #ce8cfc">ce8cfc</li>
<li style="color: #510f40">510f40</li>
<li style="color: #a256c6">a256c6</li>
<li style="color: #d85fd1">d85fd1</li>
... 10 list items in total
</ul>
</body>
</html>
Each time you run the program it should generate a different set of color values.
Send the output to the console by calling console.log. You can view the HTML document that you generate by redirecting standard output to a file as follows.