WorksheetsJS Basic Assessment
Total questions: 30
Worksheet time: 50mins
What will the following code log?
4
6
8
10
What gets printed?
9
10
11
12
What is the result?
"510"
"55"
"515"
15
What does this print?
true
false
undefined
Error
What is the output?
10
20
-10
0
What logs here?
"el"
"eo"
"ho"
"lo"
Output?
A
B
AB
Error
What is printed?
4, 1
4, 0
4, -1
3, 1
What is logged?
true
false
undefined
TypeError
Output?
abc
acc
aac
bcc
What is the output?
9
12
15
18
Output?
1
2
4
undefined
What is the output?
1
3
4
6
Output?
8
10
12
6
What does this log?
ABCDA
BCD
BCDA
BCDEA
Output?
3
4
5
6
Output?
3
4
6
7
Output?
2
8
53
NaN
DOM Logic Output?
Hello
Hello5
Hello10
Error
Output?
[1,2,3,3]
[1,2,3]
[1,2,3,undefined]
Error
Output?
6, 17
7, 16
6, 18
7, 19
Output?
[10]
[10, 10]
[10, undefined]
Error
Output?
1
5
undefined
Error
Output?
10
0
false
undefined
Output?
6
9
12
15
Output?
3
4
6
7
Output?
1
3
6
2
DOM tricky output
Hi2
Hi3
HiHi
Error
Output?
3
6
9
12
Output?
10 10
10 1
1 10
Error
