Answers for "if this then this, else that"

0

if this then this, else that

const age = 12;

if (age >= 18) {
  console.log("Nick is an adult.");
} else {
  console.log("Nick is a child.");
}
Posted by: Guest on May-02-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language