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
Copy file name to clipboardExpand all lines: booleans-and-conditionals/exercises/part-3.js
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
letengineIndicatorLight='red blinking';
2
-
letfuelLevel=21000;
3
-
letengineTemperature=1200;
2
+
letfuelLevel=6000;
3
+
letengineTemperature=2500;
4
4
5
5
/* 5) Implement the following checks using if/else if/else statements:
6
6
@@ -22,3 +22,17 @@ f) Otherwise, print "Fuel and engine status pending..." */
22
22
23
23
/* 6) b) Code the following if/else check:
24
24
If fuelLevel is above 20000 AND engineIndicatorLight is NOT red blinking OR commandOverride is true print "Cleared to launch!" Else print "Launch scrubbed!" */
0 commit comments