Question: Theme: Modify the following conditions in the JavaScript file: Change the multiplier on the die variable to 20, so that a random number is generated

Theme: Modify the following conditions in the JavaScript file:

    • Change the multiplier on the die variable to 20, so that a random number is generated from 1 to 20 with the Math.ceil and Math. random functions.
    • Add 10 additional else if statements right before the last else statement so that the values for 11 to 20 are covered for the die variable.
    • Change the title command text to represent your 20-sided file name.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres how you can modify the JavaScript file based on the given conditions 1 Change the multiplier o... View full answer

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 Programming Questions!