Hafiz Umair’s Post

JavaScript Interview Questions As a Frontend Developer, yeh 5 JS questions almost har interview mein poochay jate hain 👇 1️⃣ What is closure in JavaScript? Closure tab banta hai jab ek function apne outer function ke variables ko access kare even after outer function execution. 2️⃣ Difference between var, let, and const? var → function scoped let → block scoped const → block scoped & cannot be reassigned 3️⃣ What is hoisting? JavaScript variables & functions ko execution se pehle memory mein move kar deta hai (sirf declaration, not initialization). 4️⃣ What is event delegation? Parent element par event listener laga kar child elements ke events handle karna. Performance ke liye useful. 💡 Consistency + Strong fundamentals #JavaScript #FrontendDeveloper #WebDevelopment #InterviewPrep

To view or add a comment, sign in

Explore content categories