What's the Difference Between var, let and const? | JavaScript Pro Tips #2

JavaScript variables explained! In this tutorial and episode of JavaScript Pro Tips, we are going to look at the confusing world of JavaScript variables! Should you use const, let or var? Why is var bad? What does block-scoped and function-scoped mean?! This video should answer everything in just over 5 minutes! Hope you find it useful and don't forget to leave a comment with any cool JavaScript tips you find! ---------------------------------------------------------- 📚 Resources ---------------------------------------------------------- Editor (Visual Studio Code): https://code.visualstudio.com/ Theme: Synthwave '84 Web Browser (Back on Chrome!): https://www.google.com/intl/en_uk/chr... Terminal (iTerm, Mac only): https://iterm2.com/ MDN (where I reference JavaScript documentation): https://developer.mozilla.org/en-US/d... ---------------------------------------------------------- 🔗 My Links ---------------------------------------------------------- GitHub: https://github.com/jrgrimshaw/ Instagram:   / jrgrimshaw   LinkedIn:   / jrgrimshaw   Personal site: https://jgrimshaw.com #jamesgrimshaw #javascript #protips