DEV Community

Discussion on: 🎯 JS Interview Checklist - Part 1 (Basics)

rajatetc profile image
Rajat Gupta Author


Thank you for taking the time to comment.

I agree with you that in modern JS - the use of var is not recommended. When creating apps - I also use let and const only. I don't know about the world but it's still asked in interviews in India. Big companies like Flipkart (acquired by Walmart) have it in one form or the other in their interviews.

Besides interviews - I can think of one possible reasons as to why one should know how things happen with var - to not get confused when they encounter it on the web in some old codebase.

Your answer is crisp and to the point - taking advantage of all new ES6+ features.