technology logo
technology logo

My First List

share link

by Muhammad Ahmad dot icon Updated: Jan 16, 2023

Guide Kit Guide Kit  

let age = prompt("Hey Whats your Age?")
  age = Number.parseInt(age);

     alert("This is an invalid age");
   else if(age<12){
     alert("You are Kid and You don't think about driving")
   else if(age<18 && age>=9){
  /   alert("You are a kid and you can think about driving")
     alert("you can drive")
   document.write("You can", (age<18? "not drive" : " drive "))

Deployment Information

Write a Program that help that are you drive or not.