Question: Write a JavaScript program to show a graphical dice on screen, then a textbox showing the points on the graphical dice, followed by a textbox
Write a JavaScript program to show a graphical dice on screen, then a textbox showing the points on the graphical dice, followed by a textbox showing the previous five results of points (latest result shown on the rightmost) when rolling the dice. At the end, it will show a Roll button, which will roll the dice for 3 seconds when it is clicked. (Note: image files of 6 graphical dices available in Moodle)
[14:23]
Sample output:

When Roll button is clicked, it will show the point in the Result box and previous results box.

Result: Previous Results: Roll Result: 2 Previous Results: ,,,,2 Roll
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
