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
Heres how you can modify the JavaScript file based on the given conditions 1 Change the multiplier o... View full answer
Get step-by-step solutions from verified subject matter experts
