JSFiddle - React, Tailwind, and code Playground

by cowdd

HTML

<script>
  function Driving() {
    var Drive;
    age = prompt("Please, put in your age");


    if (age >= 18) {
      document.write("Your okay to drive!<br>");
      if (age >= 50) {
        document.write("Must have medical checkup.");
      }
    } else {
      document.write("Too young to drive.");
    }
    return;
  }

</script>

</head>

<body onLoad="Driving()">

</body>

</html>