JavaScript: Operators & Keywords Flashcards
javascript keyword: var
declares a variable
javascipt operator: =
assignment operator: used to assign a value to a variable
javascript operator: + (Number)
addition operator: adds one value to another
javascript operator: -
subtraction operator: subtracts one value from another
javascript operator: /
division operator: divides two values
javascript operator: *
multiplication operator: multiplies two values
javascript operator: ++
increment operator: adds one to another value
javascript operator: –
decrement operator: subtracts one from another value
javascript operator: %
modulo operator: divides two values and returns the remainder
javascript operator: + (String)
concatenation operator: joins two strings into one
javascript operator: typeof
typeof operator: returns a string indicating the type of the unevaluated operand
javascript operator: >
greater than relational operator: returns true if the left operand is greater than the right operand
javascript operator: <
less than operator relational: returns true if the left operand is less than the right operand
javascript operator: >=
greater than or equal to relational operator: returns true if the left operand is greater than or equal to the right operand
javascript operator: <=
less than or equal to relational operator: returns true if the left operand is less than or equal to the right operand
javascript operator: ==
equality operator: returns true if the operands are equal to each other
javasctipt operator: !=
inequality operator: returns true if the operands are not equal to each other
javascript operator: ===
strict equality operator: returns true if the operands are equal to each other with no type conversion
javascript operator: !==
strict inequality operator: returns true if the operands are not equal to each other with no type conversion
javascript operator: &&
logical AND operator: returns true if both operands evaluate to true
javascript operator: ||
logical OR operator: returns true if either operand evaluates to true
javascript operator: !
logical NOT operator: returns true if operand is false; returns false if operand is true
javascript operator: condition ? expr 1 : expr 2
conditional operator: if true, it returns expr 1. if false, it returns expr 2