Skip to content

Commit 5fc4d86

Browse files
Update DebuggingRuntimeErrors2.js
1 parent 52b5d60 commit 5fc4d86

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
let launchReady = false;
2+
let fuelLevel = 27000;
3+
4+
if (fuelLevel >= 20000) {
5+
console.log('Fuel level cleared.');
6+
launchReady = true;
7+
} else {
8+
console.log('WARNING: Insufficient fuel!');
9+
launchReady = false;
10+
}
11+
12+
if (launchReady) {
13+
console.log("10, 9, 8...");
14+
console.log("Fed parrot...");
15+
console.log("6, 5, 4...");
16+
console.log("Ignition...");
17+
consoul.log("3, 2, 1...");
18+
console.log("Liftoff!");
19+
} else {
20+
console.log("Launch scrubbed.");
21+
}

0 commit comments

Comments
 (0)