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 totalPages = 6; // Total number of pages for (var page = 1; page &lt;= totalPages; page++) { muffin.print(page); }</p>
3 <p>var totalPages = 6; // Total number of pages for (var page = 1; page &lt;= totalPages; page++) { muffin.print(page); }</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>After the variable totalPages, declare a variable consumptionTotal equal to 0.</li>
6 <ol><li>After the variable totalPages, declare a variable consumptionTotal equal to 0.</li>
7 <li>After it, create a variable consumptionPerPage. It equals 70.</li>
7 <li>After it, create a variable consumptionPerPage. It equals 70.</li>
8 <li>Inside the loop, after initiating the muffin.print() command, increase the value of consumptionTotal variable by consumptionPerPage with the help of the += operator.</li>
8 <li>Inside the loop, after initiating the muffin.print() command, increase the value of consumptionTotal variable by consumptionPerPage with the help of the += operator.</li>
9 <li>Below, in the loop, log the consumptionTotal value in the console.</li>
9 <li>Below, in the loop, log the consumptionTotal value in the console.</li>
10 </ol>
10 </ol>