IF COMMENT IN JAVASCRIPT
usualy if and if else comments are used in c/c++ languages the if statement is away to make desitions based on variable or some type of data
if programm in javascript
Quote:
<html>
<head>
<script type="text/javascript">
var a-10 //var = variable
if (a=7)
document.write("you are very lucky")
else
document.write("unlucky")
</script>
</head>
</html>
Since a=10 and its not equal to 7 output will be unlucky