Write a javaScript program that simulates a throw of a pair of dice.If a pair of 1s is thrown then the player wins teddy bear. If a pair of 2s is thrown the player wins cash.
To replay the game the player refreshes the page. So this task does not require to to access the DOM
The required images are here:







Reducing the number of possible random outcomes may help with the testing of the code.
This movie shows the game being played.
Save the html file with your name (e.g dandeman.html) and put it and the images you use in a folder that is also called after your name (e.g. dandeman). Do not leave the room until Colin has confirmed that he has a copy of your program.
This is an open book exam. You may use online resources and notes. However you may not communicate with any other person during the assessment. You may not check your e-mail, use your phone, nor use any chat programs.