- script.js
JavaScript
var percent = 0.25;
var distance = 4125;
var miles = distance * percent;
console.log('We’ll get ' + miles + ' for the flight to Irkutsk');
Result
Goalscompleted
- After declaring variable
distance
, add a check to make sure that this variable is greater than10500
. - If the check is executed, increase value of variable
percent
by0.35
.
Comments