Interactive online courses HTML Academy
2026-03-09 12:55 Diff

Excellent! Muffin can see how much the actual traffic is different from the planned one. Bu watching traffic using the method of unfaltering gaze is unscientific and inefficient. It is better to invoke dry statistics, which will help us understand what is going wrong in a non-obvious situation.

Now you need to add to the program the average number of visits for the observed period. If this value is below the recommended one, Muffin will have to think about increasing his traffic.

The average value is calculated using the formula: sum of all values ​​divided by their number. Let’s calculate the average number of visits per day and log this value in the console.