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>// Copy the whole code below var percent = 0.25; var distance = 4125; if (distance > 10500) { percent = 0.35; } var miles = distance * percent; console.log('We’ll get ' + miles + ' miles for the flight to Irkutsk'); // Paste the code after this comment</p>
3
<p>// Copy the whole code below var percent = 0.25; var distance = 4125; if (distance > 10500) { percent = 0.35; } var miles = distance * percent; console.log('We’ll get ' + miles + ' miles for the flight to Irkutsk'); // Paste the code after this comment</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>Copy the entire code written before and paste it into the editor after the existing code.</li>
6
<ol><li>Copy the entire code written before and paste it into the editor after the existing code.</li>
7
<li>Change the second message in the console to 'We’ll get ' + miles + ' miles for the flight to Kamchatka'.</li>
7
<li>Change the second message in the console to 'We’ll get ' + miles + ' miles for the flight to Kamchatka'.</li>
8
<li>Set value 11000 to the second variable distance.</li>
8
<li>Set value 11000 to the second variable distance.</li>
9
</ol>
9
</ol>