Operators Flashcards

1
Q

+

A

Adds to numbers

x=2+y

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

-

A

Subtracts

var z= x-y

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

*

A

Multiplies

Var z = x*y

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

/

A

Divide

Var z= x/y

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

%

A

Finds remainder of division

Var z= x%y

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

Checks if a number is less than the others

2<3

Evaluated to a Boolean value

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

>

A

Checks if a number is greater than the others

2>3

Evaluated to a Boolean value

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

<=

A

Is less than or equal to

x<=y

Evaluated to a Boolean value

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

> =

A

Checks if a number is greater than or equal to

x>=y

Evaluated to a Boolean value

Can also be based of alphabetical order “when in a string”

aa

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

==

A

Equality operator

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

!=

A

Inequality operator

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

===

A

Checks the equality between types

“2”==2;
True

“2”===2;
False

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