let temperature = 28;
if (temperature > 30) {
console.log("It's a hot day.");
}
let weather = "rainy";
if (weather === "sunny") {
console.log("It's sunny!");
} else {
console.log("It's not sunny.");
}
let day = "Monday";
switch (day) {
case "Monday":
console.log("Start of the week");
break;
case "Friday":
console.log("End of the week");
break;
default:
console.log("Somewhere in between");
}
let username = ""; // Falsy
if (username) {
console.log("Username provided.");
} else {
console.log("Username not provided.");
}
let grade = 85;
if (grade >= 90) {
console.log("A");
} else if (grade >= 80) {
console.log("B");
} else if (grade >= 70) {
console.log("C");
} else {
console.log("F");
}