Skip to content

Commit acae9a7

Browse files
committed
Grasshopper - if/else debug solution
1 parent 82612ac commit acae9a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

grasshopper.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function checkAlive (health) {
2+
if (health <= 0) {
3+
return false;
4+
} else {
5+
return true;
6+
}
7+
}

0 commit comments

Comments
 (0)