Skip to content

Commit ee731b6

Browse files
committed
part-1 variable initialization and console.log prediction
1 parent 8d9bc60 commit ee731b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

booleans-and-conditionals/exercises/part-1.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
// Declare and initialize the variables for exercise 1 here:
22

3+
let engineIndicatorLight = "red blinking";
4+
let spaceSuitsOn = true;
5+
let shuttleCabinReady = true;
6+
let crewStatus = spaceSuitsOn && shuttleCabinReady;
7+
let computerStatusCode = 200;
8+
let shuttleSpeed = 15000;
9+
310
// BEFORE running the code, predict what will be printed to the console by the following statements:
411

512
if (engineIndicatorLight === "green") {
@@ -9,3 +16,4 @@ if (engineIndicatorLight === "green") {
916
} else {
1017
console.log("engines are off");
1118
}
19+
//"engines are off" will be printed to the console.

0 commit comments

Comments
 (0)