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 calculateMiles = function () { var distance = 4125; var percent = 0.25; if (distance &gt; 10500) { percent = 0.35; } var miles = distance * percent; console.log('We’ll get ' + miles + ' miles for the flight to Irkutsk'); }; calculateMiles();</p>
3 <p>var calculateMiles = function () { var distance = 4125; var percent = 0.25; if (distance &gt; 10500) { percent = 0.35; } var miles = distance * percent; console.log('We’ll get ' + miles + ' miles for the flight to Irkutsk'); }; calculateMiles();</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>Change the message We’ll get miles for the flight to Irkutsk to a more universal: We’ll get miles for the flight.</li>
6 <ol><li>Change the message We’ll get miles for the flight to Irkutsk to a more universal: We’ll get miles for the flight.</li>
7 <li>Add parameter distance to the function.</li>
7 <li>Add parameter distance to the function.</li>
8 <li>In the function call, specify argument 4125.</li>
8 <li>In the function call, specify argument 4125.</li>
9 <li>Inside the function body, delete variable distance.</li>
9 <li>Inside the function body, delete variable distance.</li>
10 <li>At the end of the program, add another calculateMiles call with argument 11000.</li>
10 <li>At the end of the program, add another calculateMiles call with argument 11000.</li>
11 </ol>
11 </ol>