Skip to content

Commit

Permalink
adding solutions for boolean challenges Techtonica#2025
Browse files Browse the repository at this point in the history
  • Loading branch information
MandyMeindersma committed Sep 22, 2023
1 parent e4595e9 commit f3ad342
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code-challenges/booleans.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ squirrel_play(70, false) → true
squirrel_play(95, false) → false
squirrel_play(95, true) → true

Needs sample solution
function squirrel_play(temperature, isSummer) {
LOWER_LIMIT = 60
UPPER_LIMIT = 90
if (isSummer) {
UPPER_LIMIT = 100
}
return temperature >= LOWER_LIMIT && temperature <= UPPER_LIMIT;
}


### Problem 4
Expand Down

0 comments on commit f3ad342

Please sign in to comment.