Skip to content

Commit 70bf19f

Browse files
committed
Worked on Debugging 5 exercises
1 parent a393513 commit 70bf19f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

errors-and-debugging/exercises/DebuggingLogicErrors5.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let launchReady = false;
66
let fuelLevel = 17000;
77
let crewStatus = true;
88
let computerStatus = 'green';
9+
let utilitiesReady = false;
910

1011
if (fuelLevel >= 20000) {
1112
console.log('Fuel level cleared.');
@@ -19,10 +20,10 @@ console.log("launchReady = ", launchReady);
1920

2021
if (crewStatus && computerStatus === 'green'){
2122
console.log('Crew & computer cleared.');
22-
launchReady = true;
23+
utilitiesReady = true;
2324
} else {
2425
console.log('WARNING: Crew or computer not ready!');
25-
launchReady = false;
26+
utilitiesReady = false;
2627
}
2728

28-
console.log("launchReady = ", launchReady);
29+
console.log("utilitiesReady = ", utilitiesReady);

0 commit comments

Comments
 (0)