JavaScript Fundamentals Matter in Frontend Interviews

🚨 Yesterday’s React interview reminded me why fundamentals still matter. A lot of developers think interviews are all about React projects or frameworks. But most of the questions I was asked were actually about JavaScript fundamentals. Here’s how the interview went. The interviewer started simple: “Can you explain ES6 features? Mention any two.” Then he moved deeper into array methods. • What are common array methods in JavaScript? • What is the difference between map() and filter()? • What is the syntax of Array.filter()? Next came something many developers struggle with: “Can you explain Prototype in JavaScript?” Followed by: “What is a Polyfill in JavaScript?” Then suddenly the question turned into a coding challenge. “Can you write a method where map() behaves like filter() using prototype?” That’s when you realize interviews are not about memorizing definitions — they test how well you understand JavaScript internally. Then came a small output-based question: for (let i = 0; i < 4; i++) { console.log(i); i = 4; } console.log(i); And the interviewer asked: “What will be the output and why?” After JavaScript, we moved to React concepts. Questions included: • What React hooks do you commonly use? • Have you used useDeferredValue? • What is the difference between Class Components and Functional Components? • What is the Virtual DOM? What does the diffing algorithm compare? • Explain the Redux lifecycle. Finally, a practical React coding task: “Fetch products from a dummy JSON API using useEffect, display them, and implement a search functionality using an input field.” (find my github repo for the code reference: https://lnkd.in/d_6FJiCH) 💡 My takeaway from this interview: Frameworks change. Libraries evolve. But JavaScript fundamentals remain the backbone of frontend interviews. If your basics are strong, React questions become much easier. For anyone preparing for Frontend / React interviews, focus on: ✔ JavaScript fundamentals ✔ Array methods & prototypes ✔ Output-based questions ✔ React rendering concepts ✔ Practical coding tasks These are still the areas most interviewers explore. Curious to know from other developers 👇 What was the most unexpected question you faced in a frontend interview? #FrontendDeveloper #ReactJS #JavaScript #InterviewExperience #WebDevelopment

i faced a unexpected question ? and ?? difference

The output would be 0 Reference error

The output would be 0 Reference error: i is not defined (because let is block scope, i exists only inside that for loop)

See more comments

To view or add a comment, sign in

Explore content categories