You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}elseif(fuelLevel>20000&&engineTemperature<=2500){//REREAD THE CODE TO BE SURE ALL NUMBERS ARE CORRECT
37
+
console.log("Full tank. Engines good.");
38
+
}else{
34
39
console.log("Fuel and engine status pending...");
35
40
}
36
41
37
42
// 6) a) Create the variable commandOverride, and set it to be true or false. If commandOverride is false, then the shuttle should only launch if the fuel and engine check are OK. If commandOverride is true, then the shuttle will launch regardless of the fuel and engine status.
38
43
39
44
/* 6) b) Code the following if/else check:
40
45
If fuelLevel is above 20000 AND engineIndicatorLight is NOT red blinking OR commandOverride is true print "Cleared to launch!" Else print "Launch scrubbed!" */
46
+
41
47
if(fuelLevel>20000&&engineIndicatorLight!=='red blinking'||commandOverride===true){// alternatively !engineIndicatorLight could be used
0 commit comments