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
Post a Comment