arrow_back Back to Curriculum
javascript

JavaScript & ES6+

In-depth Javascript mechanics focusing on asynchronous handling, closures, ES6+ syntax, and frontend logic often queried in local full-stack interviews.

Interview Questions

4 Total
Q1.

What is Hoisting in JavaScript?

Medium

Hoisting is JavaScript's default behavior of moving declarations to the top of the current scope. Variables defined with `let` and `const` are hoisted to the top of the block, but not initialized (temporal dead zone).

Q2.

Explain Closures with an example.

Medium

A closure is a function having access to the parent scope, even after the parent function has closed. Often used to create private variables.

Q3.

What is the Event Loop?

Hard

The event loop is a mechanism that allows JavaScript to perform non-blocking operations by offloading operations to the system kernel (Web APIs) whenever possible, orchestrating the Call Stack and the Callback Queue.

Q4.

Difference between `==` and `===`?

Easy

`==` checks for value equality with type coercion, whereas `===` checks for strict equality (both value and type must be the same).