FY B.sc IT Practical 4(A): Design a web page demonstrating different conditional statements.

 

Code:

<!DOCTYPE html>

<html>

<head>

<title>Conditional Statements</title>

<script language="javascript">

var age = 20;

 if( age > 18 )

{

 document.write("<b>Qualifies for driving</b>");

 }

</script>

</head>

<body>

</body>

</html>

Comments

Popular posts from this blog

Program using Light Sensitive Sensors on Tinkercad

Create an android app that demonstrates Activity Lifecycle and Instance State.