if(number % 2 ==0)
{
document.write("Lucky number");
}
else
{
document.write("Not a lucky number");
}
}
else
{
document.write("Try again..............");
}
</SCRIPT>
</BODY>
</HTML>
On running the above program, we get the following output:
Conditional Statements in JavaScript 89