-
Notifications
You must be signed in to change notification settings - Fork 0
/
app1.js
34 lines (32 loc) · 809 Bytes
/
app1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Programming Quiz: Countdown, Liftoff! (4-3)
*
* Using a while loop, print out the countdown output above.
*/
// your code goes here
let count = 60;
while (count >= 0) {
switch(count) {
case 50:
console.log(`Orbiter transfers from ground to internal power`);
break;
case 31:
console.log(`Ground launch sequencer is go for auto sequence start`);
break;
case 16:
console.log(`Activate launch pad sound suppression system`);
break;
case 10:
console.log(`Activate main engine hydrogen burnoff system`);
break;
case 6:
console.log(`Main engine start`);
break;
case 0:
console.log(`Solid rocket booster ignition and liftoff!`);
break;
default:
console.log(`T-${count} seconds`);
}
count--;
}