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 ^
B **
C Math.pow()
D Both b and c
A true
B false
C undefined
D TypeError
A setTimeout()
B setInterval()
C setDelay()
D Both a and b
A true
B false
C undefined
D NaN
A 0
B ''
C null
D All of the above
A Creates a new array with the results of calling a function on every element
B Modifies the original array
C Filters elements based on a condition
D Reduces an array to a single value
A true
B false
C undefined
D TypeError
A break
B continue
C return
D exit
A number
B NaN
C undefined
D object
A concat()
B join()
C toString()
D Both b and c
A true
B false
C undefined
D NaN
A window
B document
C global
D console
A Creates a new array with elements that pass a test
B Filters out elements and modifies the original array
C Maps elements to new values
D Reduces array to a single value
A 6
B 4
C 51
D NaN
A try
B catch
C throw
D All of the above
A true
B false
C undefined
D NaN
A pop()
B shift()
C unshift()
D slice()
A 6
B 8
C 9
D 16
A push()
B unshift()
C shift()
D concat()
A true
B false
C undefined
D TypeError