Skip to content

Commit f93c281

Browse files
committed
restore password.js to prep
1 parent 919f2bc commit f93c281

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

‎Sprint-2/Prep/facts.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
console.log("One fact i love about git is that it allows people to collaborate on projects");
2+

‎Sprint-2/Prep/greeting.js‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

‎Sprint-2/Prep/password.js‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+

0 commit comments

Comments
 (0)