Theme: Modify the following conditions in the JavaScript file: Change the multiplier on the die variable to
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Artificial Intelligence A Modern Approach
ISBN: 978-0137903955
2nd Edition
Authors: Stuart J. Russell and Peter Norvig
Posted Date: