JSFiddle - React, Tailwind, and code Playground

by Alex Fogarty

JavaScript

function checkMyAge(age) {
if (age >= 21) {
alert("Over 21! Age tested:" + age);
}
else {
alert("Under 21! Age tested:" + age);
}
}
checkMyAge(19);