JavaScript code examples - Table of contents
-
Operators
- . (property access)
- [ ] (array index)
- ( ) (function call)
- new (object creation)
- ++ (unary increment)
- -- (unary decrement)
- - (negation)
- ~ (bitwise complement operation)
- ! (logical complement operation)
- delete (property deletion)
- typeof (data type return)
- void (undefined value return)
- * (multiplication)
- / (division)
- % (division remainder return)
- + (addition)
- - (subtraction)
- + (string concatenation)
- << (left shift)
- >> (right shift with sign preservation)
- >>> (right shift with zero fill)
- < ("less than" comparison)
- < ("comes before" lexicographical comparison)
- <= ("less than or equal to" comparison)
- <= ("comes before or is equal to" lexicographical comparison)
- > ("greater than" comparison)
- > ("comes after" lexicographical comparison)
- >= ("greater than or equal to" comparison)
- >= ("comes after or is equal to" lexicographical comparison)
- instanceof (object type check)
- in (property existence check)
- == (equality test)
- != (inequality test)
- === (identity test)
- !== (non-identity test)
- & (bitwise conjunction
- ^ (bitwise exclusive disjunction)
- | (bitwise disjunction)
- && (logical conjunction)
- || (logical disjunction)
- ? : (conditional assignment)
- = (assignment)
- *= (assignment with multiplication)
- /= (assignment with division)
- %= (assignment with division and return of remainder)
- += (assignment with addition)
- -= (assignment with substraction)
- += (assignment with string concatenation)
- <<= (assignment with left shift)
- >>= (assignment with right shift with sign preservation)
- >>>= (assignment with right shift with zero fill)
- &= (assignment with bitwise conjunction)
- ^= (assignment with bitwise exclusive disjunction)
- |= (assignment with bitwise disjunction)
- , (multiple evaluation)
-
Methods and properties
- decodeURI(string)
- decodeURIComponent(string)
- encodeURI(string)
- encodeURIComponent(string)
- escape(string) (deprecated)
- eval(string)
- Infinity
- isFinite(number)
- isNaN(value)
- NaN
- parseFloat(string)
- parseInt(string)
- parseInt(string, int)
- undefined
- unescape(string) (deprecated)
- Array
- EvalError
- Function
- Number
- Object
- String
- SyntaxError
- window
- window.document
- window.Math
- Miscellaneous useful examples
No comments:
Post a Comment