Skip to content

Commit 84d62d3

Browse files
committed
code for devleagueprep#4
1 parent 334bcf5 commit 84d62d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

exercises.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ console.log(isGreaterThan(3, 2));
8686
* The function will return true if the value passed into the function is "true".
8787
* Console.log your result.
8888
*/
89-
89+
function mustBeTrue(boo) {
90+
if (boo = "true") {
91+
return "true"
92+
}
93+
}
94+
console.log(mustBeTrue("true"));
9095

9196

9297
/*

0 commit comments

Comments
 (0)