var, let & const - Which one should you use?

External video

Load YouTube video?

This video is provided by YouTube. Loading it will connect your browser to YouTube and Google servers, where their own terms and privacy policies apply.

Open on YouTube

var, let & const

You can create variables with var, let and const in JavaScript. It can be confusing to understand how these three methods differ and when you should use which.

This video dives into these three alternatives and highlights the differences.