wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Comparison Operators

Total questions: 6

Worksheet time: 4mins

Name
Class
Date
1.

What is the proper way to compare if two values are equal in a boolean expression in Javascript?

a)

=

b)

==

c)

EQUALS

d)

is

2.

What is the proper operator for "not equals" in JavaScript?

a)

=!

b)

!=

c)

<=

d)

NOT EQUALS

3.

Match the following

a)
<=
1.
Less than or equal to
b)

>

2.

Greater than

c)

>=

3.

Greater than or equal to

d)

=

4.

Equal to

4.
Logical Operators
What is && ? 
a)
And
b)
Or
c)
Not
d)
Less than
5.
Logical Operators
What is ! ?
a)
And
b)
Or
c)
Not
d)
Less than
6.

What symbol represents the or operator in JavaScript?

a)

OR

b)

or

c)

||

d)

|