DEV Community

loading...

JavaScript interview question that you have to know

Lyubomir Angelov
Contributing to the web since 2007, went through hundreds platforms and solutions. Passionate to work with people to build great platforms. @angelovcode
・1 min read

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?

Discussion (0)