technology logo
technology logo

New 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 "))

A Program that help to specify that are you drive or not

Deployment Information

You can just copy and paste this code to check how to the code is flexible.