DEV Community

Lyubomir Angelov
Lyubomir Angelov

Posted on

JavaScript interview question that you have to know

What is the difference between var, let and const in JavaScript?

It happened to me with few junior JavaScript and few PHP mid/senior developers that they didn't know the answer and the bad side is that all of them had a decent experience in projects with JavaScript.

The difference is huge, Scope, Declaration and Re-declaration.
I was going to explain in details but found a very good article here that have all the details Var, let and const- what's the difference?

Top comments (0)