1var isDay = false;
2if (!isDay) { //Will execute if isDay is false
3 console.log("It's night");
4}
1const number = (Math.random() - 2.5) * 5;
2if (number < 0) {
3 console.log('Number is negative');
4}
5if (number = 0) {
6 console.log('Number is zero');
7}
8if (number > 0) {
9 console.log('Number is positive');
10}