JS Operators and Methods Flashcards
1
Q
not
A
!
2
Q
or
A
||
3
Q
and
A
&&
4
Q
how do you create a combination of booleans?
A
() for example
true && (true || false)
will derive true
5
Q
equal to
A
===
6
Q
not equal to
A
!==
7
Q
addition
A
+
8
Q
subtraction
A
-
9
Q
multiplication
A
*
10
Q
division
A
/
11
Q
exponent
A
**
12
Q
modulo
A
%
13
Q
plus equals
A
\+= example: x += y x = x + y incrementing x by y
14
Q
minus equals
A
-=
15
Q
times equals
A
*=
16
Q
divide equals
A
/=
17
Q
absolute value
A
Math.abs( )
18
Q
round up
A
Math.ceil( )
19
Q
round down
A
Math.floor( )
20
Q
parsing an integer
A
parseInt( )
21
Q
parsing a float
A
parseFloat( )