-
Notifications
You must be signed in to change notification settings - Fork 0
/
27.ts
29 lines (24 loc) · 925 Bytes
/
27.ts
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
let alien_color = "green";
console.log("ALIEN COLOR IS GREEN");
if(alien_color === "green")
console.log("Congrats! you just earned 5 points");
else if(alien_color == "yellow")
console.log("Congrats! you just earned 10 points");
else if(alien_color == "red")
console.log("Congrats! you just earned 15 points");
console.log("ALIEN COLOR IS YELLOW");
alien_color = "yellow";
if(alien_color === "green")
console.log("Congrats! you just earned 5 points");
else if(alien_color == "yellow")
console.log("Congrats! you just earned 10 points");
else if(alien_color == "red")
console.log("Congrats! you just earned 15 points");
console.log("ALIEN COLOR IS RED");
alien_color = "red";
if(alien_color === "green")
console.log("Congrats! you just earned 5 points");
else if(alien_color == "yellow")
console.log("Congrats! you just earned 10 points");
else if(alien_color == "red")
console.log("Congrats! you just earned 15 points");