Skip to content

Commit b0e55ba

Browse files
committed
Debugging Errors
1 parent 8c9f03b commit b0e55ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

errors-and-debugging/exercises/Debugging1stSyntaxError.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
let launchReady = false;
55
let fuelLevel = 17000;
66

7-
if (fuelLevel >= 20000 {
8-
console.log('Fuel level cleared.');
7+
if (fuelLevel >= 20000) {
8+
console.log('Fuel level cleared.');
99
launchReady = true;
1010
} else {
1111
console.log('WARNING: Insufficient fuel!');

errors-and-debugging/exercises/DebuggingLogicErrors1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Run this sample code as-is and examine the output.
2-
// Should the shuttle have launched?
3-
// Did it?
2+
// Should the shuttle have launched? No
3+
// Did it? Yes
44
// Do not worry about fixing the code yet, we will do that in the next series of exercises.
55

66
let launchReady = false;

0 commit comments

Comments
 (0)