Skip to content

Commit 19dd0ea

Browse files
authored
Update index.js
1 parent 01b77ad commit 19dd0ea

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

unit-testing/studio/index.js

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
11

22
let launchcode = {
3-
3+
organization : "nonprofit",
4+
executiveDirector : "Jeff",
5+
percentageCoolEmployees : 100,
6+
programsOffered : [
7+
"LC101",
8+
"LaunchCode Women+",
9+
"CodeCamp"
10+
],
11+
launchOutput : function launchOutput(num){
12+
if(num % 2 === 0 && num % 3 !== 0 && num % 5 !== 0) {
13+
return "Launch!";
14+
}else if(num % 2 !== 0 && num % 3 === 0 && num % 5 !== 0){
15+
return "Code!";
16+
} else if(num % 2 !== 0 && num % 3 !== 0 && num % 5 === 0){
17+
return "Rocks!";
18+
} else if(num % 2 === 0 && num % 3 === 0 && num % 5 !== 0){
19+
return "LaunchCode!";
20+
} else if(num % 2 !== 0 && num % 3 === 0 && num % 5 === 0){
21+
return "Code Rocks!"
22+
} else if(num % 2 === 0 && num % 3 !== 0 && num % 5 === 0){
23+
return "Launch Rocks!";
24+
} else if(num % 2 === 0 && num % 3 === 0 && num % 5 === 0){
25+
26+
}
27+
}
428
}
529

630
module.exports = launchcode;
7-

0 commit comments

Comments
 (0)