function isCold(temperature) {
return temperature <= 10;}
if (isCold(10)) {
alert("It is cold today");}
else {
alert("It is warm today");
}
//example two
function isWindy(speed, unit) {
return speed > 5 && unit === "metric";
};