Write A program to print Logical OR Operator using Javascript (using variable).
Code : logical-or.html
<html>
<body>
<script type="text/javascript">
var x=4;
var y=3;
var z=5;
document.write("At least one condition should be true:");
document.write( x>5 || y>5 || z>5);
</script>
</body>
</html>
No comments:
Post a Comment