// 1. String concatenation
console.log("no" + "ah");
console.log(`string 1 + 2 = ${1 + 2} `);

// 2. numeric operators
/* add(+)
 * sub(-)
 * divide(/)
 * multiply(*)
 * remainder(%)
 * exponentiation(**)
 */

// 3. Increment aand decrement operators
// cnt = 1
// cnt ++ = 1
// -- cnt = 1
// ++ cnt = 2
// cnt -- = 1

// 4. Assignment operatiors
// x += y

// 5. Comparison opertors
// <, <=, >, >=

// 6. Logical operators
// or(||), and(&&), not(!)

// 7. equality
// ==,
// !=,
// ===, 데이터타입 까지 확인
// !==  데이터타입 까지 확인

// 8. if
if (1 == 1) {
} else if (1 != 1) {
} else {
}

// 9. Tennary operator : ?
// condition?value1:value2
console.log(name === "noah" ? "oo" : "no");

// 10. switch
switch (browser) {
  case "IE":
    break;
  case "Chrome":
    break;
  default:
    break;
}

// 11. Loops
while (true) {
  // 로직
}

do {
  // 먼저 처리하고 싶을 경우
} while (true);

for (let i = 3; i > 0; i -= 2) {
  console.log(i);
}