Skip to content

Commit 50b8b06

Browse files
authored
Update exercises.js
1 parent d74b2d2 commit 50b8b06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ If statements - Evaluates (or checks) a condition. If the condition is true, any
44
var today = new Date();
55

66
if(today === "Friday"){
7-
console.log("Let's Party!");
7+
return "Let's Party!";
88
};
99

1010
/*
1111
If/else statements = Evaluates (or checks) a condition. If the condition is true, the first code block is executed. If the condition is false, the second code block is executed instead.
1212
*/
1313

1414
if(today === "Friday"){
15-
console.log("Let's Party!");
15+
return "Let's Party!";
1616
}else{
17-
console.log("Get back to coding!");
17+
return "Get back to coding!";
1818
};
1919

2020

0 commit comments

Comments
 (0)