File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ console . log ( "One fact i love about git is that it allows people to collaborate on projects" ) ;
2+
Original file line number Diff line number Diff line change 1+ const greeting = "Hello There !" ;
2+ console . log ( greeting ) ;
3+
4+ const name = "Matt" ;
5+ console . log ( `${ greeting } , I am ${ name } ` ) ;
6+
7+ let location = "Manchester" ;
8+ console . log ( `${ greeting } , my name is ${ name } and i live in ${ location } ` ) ;
9+
10+ let location2 = "London" ;
11+ console . log ( `${ greeting } , I am ${ name } , I will be traveling to ${ location2 } soon` ) ;
12+
13+ console . log ( "Dog" === "Mango" ) ;
14+
15+ console . log ( 5 + 15 === 20 ) ;
16+
17+ console . log ( "dog" == "dog" ) ;
18+
19+ console . log ( 40 + 5 == "45" ) ;
20+
21+ console . log ( 60 + 40 > 50 ) ;
22+
23+ console . log ( 100 <= 90 ) ;
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
Original file line number Diff line number Diff line change 1+ const password = "Matt123" ;
2+ const userInput = "Anything" ;
3+ const administrator = "Anything" ;
4+ let response = " " ;
5+
6+ if ( password === userInput ) {
7+ response = "Login successful" ;
8+ } else if ( userInput === administrator ) {
9+ response = "Welcome to the site" ;
10+ }
11+ else {
12+ response = "Please try again" ;
13+ }
14+ console . log ( response ) ;
15+
16+
You can’t perform that action at this time.
0 commit comments