JavaScript

Practice JavaScript MCQs covering variables, data types, operators, functions, objects, arrays, DOM manipulation, events, ES6+, asynchronous programming, APIs, and modern JavaScript concepts.

105 MCQs available

Start Course Browse MCQs
A trim()
B strip()
C trimStart()
D trimEnd()
A 1
B 2
D 2.5
A break
B continue
C return
D skip
A number
B bigint
C object
D undefined
A concat()
B merge()
C join()
D push()
A 1
B 0
C true
D false
A size
B length
C count
D index
A true
B false
C undefined
D TypeError
A findIndex()
B indexOf()
C find()
D Both a and b
A true
B false
C undefined
D NaN
A call()
B apply()
C bind()
D All of the above
A 0.3
B 0.30000000000000004
C 0.30000000000000004
D 0.30000000000000004
A setTimeout()
B setInterval()
C setRepeat()
D setRecurring()
A true
B false
C undefined
D TypeError
A firstChild
B firstElementChild
C childNodes[0]
D All of the above
A true
B false
C undefined
D NaN
A toString()
B String()
C valueOf()
D Both a and b
A true
B false
C undefined
D NaN
A load
B DOMContentLoaded
C ready
D Both a and b
A 1
B 21
C NaN
D TypeError