■ Most Asked JavaScript Interview Questions
Basics (Freshers ke liye)
• JavaScript aur ECMAScript me kya difference hai?
• var, let aur const me kya farak hai?
• == aur === me kya difference hai?
• Hoisting kya hoti hai? Example do.
• Scope (Global, Function, Block scope) samjhao.
• Closures kya hote hain? Real-life example ke sath.
• Synchronous aur Asynchronous JavaScript me difference.
• Callback function kya hai?
• Promises kya hote hain? Promise chaining samjhao.
• Async / Await ka use kyu karte hain?
Intermediate (Frontend Developer interviews me aksar aate hain)
• Event Loop kya hota hai? Call Stack, Callback Queue aur Microtask Queue samjhao.
• JavaScript me prototype aur prototypal inheritance kya hota hai?
• this keyword ka behavior alag-alag situations me kaisa hota hai?
• Arrow functions aur normal functions me difference.
• IIFE (Immediately Invoked Function Expression) kya hoti hai?
• Higher Order Functions kya hain?
• map, filter aur reduce ka use case samjhao.
• Debouncing aur Throttling kya hote hain?
• Shallow Copy aur Deep Copy me difference.
• null aur undefined me kya farak hai?
Advanced (Agar company thoda deep JavaScript check kare)
• Currying kya hota hai?
• Event Bubbling aur Event Capturing kya hote hain?
• JavaScript me Memory Leak kaise hoti hai aur usse bachne ke tarike?
• What is the difference between call, apply and bind?
• Generators aur Iterators kya hote hain?
• JavaScript single-threaded language hote hue bhi asynchronous kaam kaise karta hai?
• Shadowing aur Variable Masking kya hota hai?
• Service Workers kya hote hain aur unka use kaha hota hai?
• WeakMap aur WeakSet kya hote hain?
• ES6+ ke naye features jaise: Destructuring, Spread operator, Template literals, Modules.