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 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(averageUsers);</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(averageUsers);</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 <p>Complete the program.</p>
6 <p>Complete the program.</p>
7 <ol><li>Add a hint to the average value log in the console: 'Average traffic: ' + averageUsers.</li>
7 <ol><li>Add a hint to the average value log in the console: 'Average traffic: ' + averageUsers.</li>
8 <li>At the end of the program, add a check to make sure that the average value is <em>greater than</em>the expected one.</li>
8 <li>At the end of the program, add a check to make sure that the average value is <em>greater than</em>the expected one.</li>
9 <li>If the condition is met, log the message in the console 'Traffic is amazing. Keep up the good work!'.</li>
9 <li>If the condition is met, log the message in the console 'Traffic is amazing. Keep up the good work!'.</li>
10 <li>Otherwise, log the following message in the console 'Traffic is so-so. You need to work harder!'.</li>
10 <li>Otherwise, log the following message in the console 'Traffic is so-so. You need to work harder!'.</li>
11 </ol>
11 </ol>