Skip to content

Commit adf0764

Browse files
committed
devleagueprep#6 isEqual Strings
1 parent 83e463d commit adf0764

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

exercises.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@ console.log("bigBird :", bigBird('dog'))
135135
* If the strings are equal, the function will return the message "You look mahvelous!" Otherwise, return the message: "I don't know who you are anymore."
136136
* Console.log your result.
137137
*/
138-
138+
function isEqual(first, second){
139+
if(first === second){
140+
return "You look mahvelous!";
141+
}else{
142+
return "I don't know who you are anymore.";
143+
}
144+
}
145+
console.log(isEqual('pizza', 'banana'));
139146

140147
/*
141148
* #7

0 commit comments

Comments
 (0)