JavaScript
Practice JavaScript MCQs covering variables, data types, operators, functions, objects, arrays, DOM manipulation, events, ES6+, asynchronous programming, APIs, and modern JavaScript concepts.
3
Topics
304
Total MCQs
JavaScript
Practice JavaScript MCQs covering variables, data types, operators, functions, objects, arrays, DOM manipulation, events, ES6+, asynchronous programming, APIs, and modern JavaScript concepts.
Answer: All of these methods return the current time in milliseconds.
Answer: String concatenation converts the number to a string, resulting in 'a1'.
Answer: Array.isArray() is the recommended method to check if a value is an array.
Answer: 5 > 4 is true, but 4 > 5 is false, so the AND returns false.
Answer: export is used in ES modules, while exports and module.exports are used in CommonJS.