Programming · Section
JavaScript Programming Questions and Answers
JavaScript MCQ questions with answers, output questions, find-the-error code, coding problems and interview questions – ES6, closures, promises and the event loop, every answer run on Node.js.
- 25 topics
- 1,500+ questions
- Step-by-step explanations
All topics
Pick a topic to read the concepts, then practise its MCQs, output questions and programs.
- 01 JavaScript Basics 60 questions
- 02 Variables: var, let and const 60 questions
- 03 Data Types 60 questions
- 04 Operators 60 questions
- 05 Conditional Statements 60 questions
- 06 Loops 60 questions
- 07 Functions 60 questions
- 08 Scope and Hoisting 60 questions
- 09 Arrays 60 questions
- 10 Strings 60 questions
- 11 Objects 60 questions
- 12 Array Methods 60 questions
- 13 String Methods 60 questions
- 14 ES6 Features 60 questions
- 15 Arrow Functions 60 questions
- 16 Destructuring 60 questions
- 17 Spread and Rest Operators 60 questions
- 18 Closures 60 questions
- 19 Callbacks 60 questions
- 20 Promises 60 questions
- 21 Async/Await 60 questions
- 22 Event Loop 60 questions
- 23 DOM Manipulation 60 questions
- 24 Error Handling 60 questions
- 25 JavaScript Output Questions 60 questions
More in Programming
Ready to test your Programming?
Timed online tests with instant scores and explanations.
About this section
About JavaScript Programming
Why it matters
- JavaScript runs every web page and, with Node.js, servers, tools and APIs – it is the most used language in the world
- Front-end, full-stack and MERN roles test JavaScript first, and many campus coding rounds allow it
- "Predict the output" questions on hoisting, closures,
this, coercion and the event loop are interview favourites - Modern ES6+ – let/const, arrow functions, destructuring, promises and async/await – is what companies expect from freshers
Who it is for
- College students (B.Tech, BCA, MCA, B.Sc CS) learning web development and preparing for semester exams and viva
- Freshers preparing for campus placements, online assessments and front-end interviews
- Developers moving to React, Angular, Vue or Node.js who need strong core JavaScript
- Anyone revising ES6 and asynchronous JavaScript before an interview
What every topic gives you
- Study material in five tabs: concepts with runnable examples, coding techniques, programs, interview questions and a cheat sheet
- Topic-wise MCQs on concepts and ES6 features
- "Predict the output" puzzles – hoisting, coercion, closures, promises and timers
- "Find the error" debugging: SyntaxError, ReferenceError, TypeError and silent logic bugs
- Coding problems with solutions and real output, every one run on Node.js – run any study example in your browser
Asked in
- Campus placements
- TCS, Infosys, Wipro, Accenture, Cognizant tests
- Front-end developer interviews
- MERN / full-stack interviews
- Online coding assessments
- University practicals
How to use this section
- Read the study material of a topic and run the examples in the browser.
- Practise the four exercises – MCQs, output, debugging, coding problems – each marked Easy, Medium or Hard, and read every explanation.
- Revise with the interview questions and cheat sheet, then move to the next topic.