document.write(name, " is not selected for college");
}
}
else
{
document.write(name, " is too young for college");
}
</SCRIPT>
</BODY>
</HTML>
On running the program given on previous page, we get the following output:
Conditional Statements in JavaScript 87