wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JS Basic Assessment

Total questions: 30

Worksheet time: 50mins

Name
Class
Date
1.

What will the following code log?

a)

4

b)

6

c)

8

d)

10

2.

What gets printed?

a)

9

b)

10

c)

11

d)

12

3.

What is the result?

a)

"510"

b)

"55"

c)

"515"

d)

15

4.

What does this print?

a)

true

b)

false

c)

undefined

d)

Error

5.

What is the output?

a)

10

b)

20

c)

-10

d)

0

6.

What logs here?

a)

"el"

b)

"eo"

c)

"ho"

d)

"lo"

7.

Output?

a)

A

b)

B

c)

AB

d)

Error

8.

What is printed?

a)

4, 1

b)

4, 0

c)

4, -1

d)

3, 1

9.

What is logged?

a)

true

b)

false

c)

undefined

d)

TypeError

10.

Output?

a)

abc

b)

acc

c)

aac

d)

bcc

11.

What is the output?

a)

9

b)

12

c)

15

d)

18

12.

Output?

a)

1

b)

2

c)

4

d)

undefined

13.

What is the output?

a)

1

b)

3

c)

4

d)

6

14.

Output?

a)

8

b)

10

c)

12

d)

6

15.

What does this log?

a)

ABCDA

b)

BCD

c)

BCDA

d)

BCDEA

16.

Output?

a)

3

b)

4

c)

5

d)

6

17.

Output?

a)

3

b)

4

c)

6

d)

7

18.

Output?

a)

2

b)

8

c)

53

d)

NaN

19.

DOM Logic Output?

a)

Hello

b)

Hello5

c)

Hello10

d)

Error

20.

Output?

a)

[1,2,3,3]

b)

[1,2,3]

c)

[1,2,3,undefined]

d)

Error

21.

Output?

a)

6, 17

b)

7, 16

c)

6, 18

d)

7, 19

22.

Output?

a)

[10]

b)

[10, 10]

c)

[10, undefined]

d)

Error

23.

Output?

a)

1

b)

5

c)

undefined

d)

Error

24.

Output?

a)

10

b)

0

c)

false

d)

undefined

25.

Output?

a)

6

b)

9

c)

12

d)

15

26.

Output?

a)

3

b)

4

c)

6

d)

7

27.

Output?

a)

1

b)

3

c)

6

d)

2

28.

DOM tricky output

a)

Hi2

b)

Hi3

c)

HiHi

d)

Error

29.

Output?

a)

3

b)

6

c)

9

d)

12

30.

Output?

a)

10 10

b)

10 1

c)

1 10

d)

Error