File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
2
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
+ }
4
28
}
5
29
6
30
module . exports = launchcode ;
7
-
You can’t perform that action at this time.
0 commit comments