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 parseInt()
B parseFloat()
C Number()
D Both a and c
A undefined
B null
C object
D NaN
A Array.from()
B Array.of()
C Array.create()
D Array.new()
A h
B e
C hello
D undefined
A in
B hasOwnProperty
C typeof
D Both a and b
A true
B false
C undefined
D TypeError
A new Date()
B Date.now()
C new Date().getTime()
D All of the above
A 4
B 22
C NaN
D TypeError
A slice()
B concat()
C Array.from()
D All of the above
A 33
B 123
C 6
D NaN
A const
B let
C var
D final
A []
B ''
C undefined
D TypeError
A Math.ceil()
B Math.floor()
C Math.round()
D Math.trunc()
A true
B false
C undefined
D NaN
A onclick
B click
C mouseclick
D Both a and b
A 32
B 5
C 33
D NaN
A includes()
B contains()
C has()
D indexOf()
A 0
B Hello
C true
D false
A innerHTML
B outerHTML
C textContent
D All of the above
A true
B false
C undefined
D TypeError