-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq25.js
More file actions
13 lines (13 loc) · 677 Bytes
/
q25.js
File metadata and controls
13 lines (13 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";
// Alien Colors #1: Imagine an alien was just shot down in a game. Create a variable called alien_color and assign it a value of 'green', 'yellow', or 'red'.
exports.__esModule = true;
// • Write an if statement to test whether the alien’s color is green. If it is, print a message that the player just earned 5 points.
// • Write one version of this program that passes the if test and another that fails. (The version that fails will have no output.)
function q25() {
var alien_color = 'green';
if (alien_color === 'green') {
console.log("Congratulations! You just earned 5 points!");
}
}
exports["default"] = q25;
q25();