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 expectedUsers = 1000; var firstDayUsers = 812; var secondDayUsers = 1360; var thirdDayUsers = 657; // Drawing the traffic graph muffin.plot(firstDayUsers, secondDayUsers, thirdDayUsers, expectedUsers); // Calculating the average traffic value var averageUsers = (firstDayUsers + secondDayUsers + thirdDayUsers) / 3; console.log('Average traffic: ' + averageUsers); if (averageUsers > expectedUsers) { console.log('Traffic is amazing. Keep up the good work!'); } else { console.log('Traffic is so-so. You need to try harder.'); }</p>
3
<p>var expectedUsers = 1000; var firstDayUsers = 812; var secondDayUsers = 1360; var thirdDayUsers = 657; // Drawing the traffic graph muffin.plot(firstDayUsers, secondDayUsers, thirdDayUsers, expectedUsers); // Calculating the average traffic value var averageUsers = (firstDayUsers + secondDayUsers + thirdDayUsers) / 3; console.log('Average traffic: ' + averageUsers); if (averageUsers > expectedUsers) { console.log('Traffic is amazing. Keep up the good work!'); } else { console.log('Traffic is so-so. You need to try harder.'); }</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>In the next line after the thirdDayUsers variable, add fourthDayUsers variable with 1247value.</li>
6
<ol><li>In the next line after the thirdDayUsers variable, add fourthDayUsers variable with 1247value.</li>
7
<li>Add the fourthDayUsers parameter after thirdDayUsers in the muffin.plot()command.</li>
7
<li>Add the fourthDayUsers parameter after thirdDayUsers in the muffin.plot()command.</li>
8
<li>Change average value calculation. Add fourthDayUsers as the last summand and change the divisor to 4.</li>
8
<li>Change average value calculation. Add fourthDayUsers as the last summand and change the divisor to 4.</li>
9
</ol>
9
</ol>