JavaScript: Operators & Keywords Flashcards

1
Q

javascript keyword: var

A

declares a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

javascipt operator: =

A

assignment operator: used to assign a value to a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

javascript operator: + (Number)

A

addition operator: adds one value to another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

javascript operator: -

A

subtraction operator: subtracts one value from another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

javascript operator: /

A

division operator: divides two values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

javascript operator: *

A

multiplication operator: multiplies two values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

javascript operator: ++

A

increment operator: adds one to another value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

javascript operator: –

A

decrement operator: subtracts one from another value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

javascript operator: %

A

modulo operator: divides two values and returns the remainder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

javascript operator: + (String)

A

concatenation operator: joins two strings into one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

javascript operator: typeof

A

typeof operator: returns a string indicating the type of the unevaluated operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

javascript operator: >

A

greater than relational operator: returns true if the left operand is greater than the right operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

javascript operator: <

A

less than operator relational: returns true if the left operand is less than the right operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

javascript operator: >=

A

greater than or equal to relational operator: returns true if the left operand is greater than or equal to the right operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

javascript operator: <=

A

less than or equal to relational operator: returns true if the left operand is less than or equal to the right operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

javascript operator: ==

A

equality operator: returns true if the operands are equal to each other

17
Q

javasctipt operator: !=

A

inequality operator: returns true if the operands are not equal to each other

18
Q

javascript operator: ===

A

strict equality operator: returns true if the operands are equal to each other with no type conversion

19
Q

javascript operator: !==

A

strict inequality operator: returns true if the operands are not equal to each other with no type conversion

20
Q

javascript operator: &&

A

logical AND operator: returns true if both operands evaluate to true

21
Q

javascript operator: ||

A

logical OR operator: returns true if either operand evaluates to true

22
Q

javascript operator: !

A

logical NOT operator: returns true if operand is false; returns false if operand is true

23
Q

javascript operator: condition ? expr 1 : expr 2

A

conditional operator: if true, it returns expr 1. if false, it returns expr 2