Back to Interview Hub

JavaScript Questions

Core JS, ES6+, closures, event loop, and DOM manipulation.

Showing 1-6 of 36 questions

1 / 6
1QuestionsEasy🔥 43% Asked

What is JavaScript?

Asked in:AccentureUberIBM

JavaScript is a single-threaded, high-level language used to make web pages interactive, build servers with Node.js, and create

apps. It supports event-driven and asynchronous programming.

2QuestionsEasy🔥 31% Asked

Difference between var, let, and const?

Asked in:GoogleUberZomato

var is function-scoped and hoisted. let and const are block-scoped. const cannot be reassigned, but object properties inside a

const object can still change.

3QuestionsEasy🔥 51% Asked

What is hoisting?

Asked in:ZomatoInfosysStripePaytm

Hoisting means declarations are moved to the top of their scope during compilation. var is initialized as undefined; let/const are

hoisted but stay in temporal dead zone until declared.

4QuestionsEasy🔥 35% Asked

What are primitive types in JS?

Asked in:LinkedInAirbnbWiproCred

string, number, bigint, boolean, undefined, symbol, and null. Primitives are immutable and compared by value.

5QuestionsEasy🔥 51% Asked

What is the difference between == and ===?

Asked in:WalmartCredPaytmMeta

== performs type coercion before comparison. === compares both value and type, so it is safer and preferred in production code.

6QuestionsMedium🔥 67% Asked

Explain closure with use case.

Asked in:AdobeCognizantWipro

A closure is when an inner function remembers variables from its outer scope even after the outer function has returned. It is used

in counters, private state, debounce, and function factories.