//test how things work bla bla bla "use strict"; let name = "John"; name = 4; //name will be 4 let compare = 4 > 1; //this will be true console.log(typeof compare); //gets the type of compare => boolean let age = 17; let isOver18 = age > 17 ? "is old enough" : "is not old enough"; //the short if statement //logical or || let hour = 9; if (hour < 10 || hour > 18) {   alert( 'The office is closed.' ); } //logical and && if (hour > 5 && hour < 10) {     alert("the office is open"); } //logical not ! let result = true; alert(!result) //will be false //Nullish coalescing operator '??' a = undefined; b = 5; result = a ?? b; //this is the same as result = (a !== null && a !== undefined) ? a : b; let i = 0; while (i <= 5) {     if (i == 4)         break;     console.log(i);     i++; } for (let i = 0; i < 5; i++) {     if (i == 4)         break     console.log(i) } //switch let a = 2 + 2; switch (a) {   case 3:     alert( 'Too small' );     break;   case 4:     alert( 'Exactly!' );     break;   case 5:     alert( 'Too large' );     break;   default:     alert( "I don't know such values" ); } //function expressions function sayHi() {   // (1) create     alert( "Hello" );   }      let func = sayHi;    // (2) copy      func(); // Hello     // (3) run the copy (it works)!   sayHi(); // Hello    //     this still works too (why wouldn't it) //this is the same   let sum = (a, b) => a + b;   let sum1 = (a, b) => {       let result = a + b;       return result;   }