Article Web Application

Design a programme To input age from the function and Printing the messgae from the fucntion

20210317_120147

<html lang= ” accept”>

<head>

<script>

function checked()

{

var age = parselnt(prompt(“Please enter your age”)

var vote=” not eligible”;

if(age >18)

{

vote=”eligible”;

}

 

document. write(“You are <r>”+vote+”</r> for vote”)

}

</script>

</head>

<body>

</script>

checked();

</script>

</body>

</html>

 

 

 

 

 

    Bishu Kumar

    I am Bishu kumar and i like travelling and sports.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Back To Top