Warmup - Squirrel Play

Warmup - Squirrel Play

The squirrels in Palo Alto spend most of the day playing. In particular, they play if the temperature is between 60 and 90 (inclusive). Unless it is Summer, then the upper limit is 100 instead of 90. Given an int temp and a boolean isSummer, return true if the squirrels play and false otherwise.

function squirrelPlay(temp, isSummer) {
    // Write your code here
}

squirrelPlay(70, false)  // returns true
squirrelPlay(95, false)  // returns false
squirrelPlay(95, true)  // returns true