HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <ul><li>script.js</li>
1 <ul><li>script.js</li>
2 </ul><p>JavaScript</p>
2 </ul><p>JavaScript</p>
3 <p>var diceNumber = 2; var firstCatName = 'Muffin'; var firstCatPoints = 0; var secondCatName = 'Rudolph'; var secondCatPoints = 0; var runGame = function (quantity, firstPlayerName, firstPlayerPoints, secondPlayerName, secondPlayerPoints) { console.log(muffin.throwDice(quantity, quantity * 6)); }; runGame(diceNumber, firstCatName, firstCatPoints, secondCatName, secondCatPoints);</p>
3 <p>var diceNumber = 2; var firstCatName = 'Muffin'; var firstCatPoints = 0; var secondCatName = 'Rudolph'; var secondCatPoints = 0; var runGame = function (quantity, firstPlayerName, firstPlayerPoints, secondPlayerName, secondPlayerPoints) { console.log(muffin.throwDice(quantity, quantity * 6)); }; runGame(diceNumber, firstCatName, firstCatPoints, secondCatName, secondCatPoints);</p>
4 <p>Thanks! We’ll fix everything at once!</p>
4 <p>Thanks! We’ll fix everything at once!</p>
5 <h2>Result</h2>
5 <h2>Result</h2>
6 <ol><li>Inside runGame, replace roll’s console log with increase of the points of the first player firstPlayerPoints += muffin.throwDice(quantity, quantity * 6);.</li>
6 <ol><li>Inside runGame, replace roll’s console log with increase of the points of the first player firstPlayerPoints += muffin.throwDice(quantity, quantity * 6);.</li>
7 <li>Similarly, increase the second player’s points secondPlayerPoints.</li>
7 <li>Similarly, increase the second player’s points secondPlayerPoints.</li>
8 <li>Log points of the first player firstPlayerName + 'rolled' + firstPlayerPoints in the console.</li>
8 <li>Log points of the first player firstPlayerName + 'rolled' + firstPlayerPoints in the console.</li>
9 <li>Similarly, log the second player’s points.</li>
9 <li>Similarly, log the second player’s points.</li>
10 </ol>
10 </ol>