JavaScript MCQs

JavaScript ES6+, closures, promises, event loop, DOM, and async/await.

23 MCQsProgrammingAll Levels
Key Concept Overview & Exam Context

Review core principles of JavaScript before answering questions. These questions simulate placement technical assessments (TCS, Infosys, Amazon), university exams (CS/IT), and technical certifications.

Target Readiness
Placements & Job Interviews
Question Format
Multiple-Choice with Explanations
Verified Solutions
Step-by-step Output Traces

JavaScript MCQ Questions

Page 2 of 2 (23 total)
Q1

What is the DOM in the context of web development?

medium
Correct Answer: A programming interface that represents an HTML document as a structured tree of objects that JavaScript can interact with
Explanation:
The Document Object Model gives JavaScript a way to read and modify the structure, content, and styling of a webpage after it has loaded, which is how dynamic interactions like updating text without reloading the page become possible.
Q2

What will typeof NaN return in JavaScript?

easy
Q3

What will typeof NaN return in JavaScript?

easy
Showing 21 to 23 of 23 questions