Question: JavaScript 1. Define a function called roll_dice whose function comment reads as follows. /** Returns the result of rolling two dice. Here are some possible

JavaScript

JavaScript 1. Define a function called roll_dice whose function comment reads as

1. Define a function called roll_dice whose function comment reads as follows. /** Returns the result of rolling two dice. Here are some possible return values. '1 + 2 = 3' '6 + 4 = 100 3 + 5 8' 2 + 2 4' = = The probability distribution of the return values is the same as rolling two fair dice in real life. @return {string} The result of rolling two dice. */

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!