<!DOCTYPE html>
<html>
<head>
<title>If-else-if ladder</title>
<script type="text/javascript">
var a="fist letter";
if(a =="first letter")
{
document.write("1 is the first natural number");
}
else if (a=="first letter") {
document.write("a is the first letter");
}
else {
document.write("nothing");
}
</script>
</head>
<body>
</body>
</html>