Javascript
Placing Code
[
Functions
] [
Events
] [
Comments
] [
Conditionals-looping
] [
Hiding the JavaScript
] [
Date object
] [
Prompt Method
] [
Alert Method
] [
Confirm Method
] [
write and writeln
] [
Operators
] [
Variable
] [
When JS Statements Run
] [
Objects
] [
Examples
] [
Glossary Terms
]
Friday, 10 December 2010
Logical Operators
JavaScript Logical Operators
Operator
Description
Examples
&& (AND)
Logical AND.
(x<3 && y<=5)
|| (OR)
Logical OR
(x<3 || y<=5)
! (NOT)
Logical NOT.
!(x>3)
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment