If Else Statement Javascript

If Else Statement Javascript

If Else Statement Javascript


if else statement javascript,javascript if else if,javascript if else shorthand,javascript if then else,javascript if else syntax


If else

<html>
<head>
<title>
welcome
</title>
</head>
<body>
<script>
var a;
a=25;
if(a>=18)
document.write("I am elgible for vote");
else
document.write("I am not eligible for vote");
</script>
</body>
</html>


Post a Comment

0 Comments