Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JS: Conditionals!

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following variable declarations are right?

a)

var 10 =10;

b)

var num = 10;

c)

var name = "Bob";

d)

var number 10 = 10;

2.

What is the value of x here?

(a)  

3.

What is the value of z?

(a)  

4.

Is this statement true or false? ( write true or false)

(a)  

5.

Is this statement true or false? (write true or false)

(a)  

6.

Is this statement true or false? (Write true or false)

(a)  

7.

Which statement will be printed to the console?

a)

I am 5

b)

I am not 5

c)

I'm not sure

d)

Nothing will be printed

8.

Which of these statements will be printed?

a)

I am less than or equal to 10

b)

I am none of the options

c)

I am 5

9.

What will be printed to the console?

a)

You are in elementary school

b)

You are in high school

c)

You are in some other school

10.

What will be printed to the console?

a)

You passed

b)

You failed

c)

None of the options

11.

What will be printed to the console log?

a)

You got the average

b)

You failed

c)

Congrats you get ice cream!