Jeśli to, to, w przeciwnym razie to

const age = 12;

if (age >= 18) {
  console.log("Nick is an adult.");
} else {
  console.log("Nick is a child.");
}
kordru