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:

Write a JavaScript program to show a graphical dice on screen, then

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

a textbox showing the points on the graphical dice, followed by a

Result: Previous Results: Roll Result: 2 Previous Results: ,,,,2 Roll

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!