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 TotalWhat is Hoisting in JavaScript?
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).
Explain Closures with an example.
A closure is a function having access to the parent scope, even after the parent function has closed. Often used to create private variables.
What is the Event Loop?
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.
Difference between `==` and `===`?
`==` checks for value equality with type coercion, whereas `===` checks for strict equality (both value and type must be the same).