if(age < 18) { 
  alert("You’re not an adult");
} else { 
  alert("You’re an adult");
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.