Skip to content

Commit cd53ceb

Browse files
committed
Committing prep, don't correct this
1 parent d28242a commit cd53ceb

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎prep/parameters.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function greet(timeOfDay, name = "user"){
2+
console.log(`Good ${timeOfDay}, ${name}.`)
3+
}
4+
5+
greet("afternoon");

‎prep/passwordCheckerFunction.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const password = "secretword123";
2+
3+
function checkPassword(userInput){
4+
5+
return userInput === password;
6+
}
7+
8+
const toPrint = "The result was: " + checkPassword("secretword123");
9+
checkPassword("wrongngndn");
10+
console.log(toPrint);

‎prep/using-a-function.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const rounded = Math.round(10.3);
2+
const rounded2 = Math.round(4.2);
3+
console.log(rounded, rounded2);
4+
console.lo

0 commit comments

Comments
 (0)