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 new
B create
C instance
D class
A true
B false
C undefined
D NaN
A window.location.href
B document.URL
C location.href
D All of the above
A 10
B 55
C NaN
D TypeError
A toLowerCase()
B lowerCase()
C toLower()
D caseLower()
A 20
B 14
C 24
D 12
A eval()
B parse()
C execute()
D run()
A true
B false
C undefined
D TypeError
A Math.max()
B Math.max.apply()
C Math.max(...array)
D All of the above
A function
B object
C undefined
D arrow
A onsubmit
B submit
C formsubmit
D Both a and b
A 1
B 2
C 3
A import
B require
C include
D Both a and b (depending on environment)
A 6
B 23
C NaN
D TypeError
A toUpperCase()
B upperCase()
C toUpper()
D caseUpper()
A 3
B 52
C NaN
D TypeError
A Object.defineProperty()
B Object.assign()
C Dot notation or bracket notation
D All of the above
A true
B false
C undefined
D NaN
A window
B global
C Both a and b
D timer
A 64
B 1234
C 10
D NaN