Comparison operators are used for comparing the value of the variables. In conjunction with if and else statements they make up the most important fabric of the javascript programming language. Let us take an example If you run the above script it should display "good morning" or "good evening" depending upon the time when you play this code. The < ( less than) is a conditional operator.
You can try to experiment it online at the following link ( opens in a new window).
http://www.referencedesigner.com/tutorials/js/js_7.php
Javascript TUTORIAL
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment