function returns boolean

PHOTO EMBED

Wed Apr 12 2023 19:59:51 GMT+0000 (Coordinated Universal Time)

Saved by @thecowsays #javascript

function isFreezing(temperature) {
 return temperature < 0;
}
const freezing = isFreezing(-3);
console.log(freezing);
content_copyCOPY

when naming a function that returns a Boolean, start with "is" i.e. "isFreezing"