JavaScript var, let, and const explained
About
No channel description available.
Latest Posts
Video Description
Learn more from Chris 👉 https://gomakethings.com/kevin-powell/ 🔗 Links ✅ The source code from this video: https://gist.github.com/cferdinandi/975fbf849510d0fa5cc49483f34b29a8 ✅ More from Chris: https://gomakethings.com/kevin-powell/ ⌚ Timestamps 00:00 - Introduction 00:47 - The basics of var 01:22 - The problem with var 03:55 - Comparing var to CSS selectors 04:41 - let 06:07 - const 07:04 - You can change a const, but not override it 08:01 - How to decide which one to use #css -- Come hang out with other dev's in my Discord Community 💬 https://discord.gg/nTYCvrK Keep up to date with everything I'm up to ✉ https://www.kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! 📺 https://www.twitch.tv/kevinpowellcss --- Help support my channel 👨🎓 Get a course: https://www.kevinpowell.co/courses 👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome 💖 Support me on Patreon: https://www.patreon.com/kevinpowell --- My editor: VS Code - https://code.visualstudio.com/ --- I'm on some other places on the internet too! If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter. Twitter: https://twitter.com/KevinJPowell Codepen: https://codepen.io/kevinpowell/ Github: https://github.com/kevin-powell --- And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
You May Also Like
Affordable Smartphone Upgrade
AI-recommended products based on this video

USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG
![VYLEE VYLEE UK Plug Adapter, Foldable UK Travel Plug Adapter, Type G Power Adapter with 4 Outlets 4 USB Ports(2 USB C) Travel Essentials Plug with Bag for USA to Qatar Ireland England Kenya Dubai [1 Pack]](https://m.media-amazon.com/images/I/71iu1UZYrtL._AC_UL960_FMwebp_QL65_.jpg)
VYLEE VYLEE UK Plug Adapter, Foldable UK Travel Plug Adapter, Type G Power Adapter with 4 Outlets 4 USB Ports(2 USB C) Travel Essentials Plug with Bag for USA to Qatar Ireland England Kenya Dubai [1 Pack]

VINTAR 2 Pack UK Ireland Travel Plug Adapter, VINTAR Type G Plug Adapter with 2 Outlets, 3 USB Ports and 1 USB C, International Power Adaptor for US to UK British England Scotland Irish London Hong Kong
![GuaGua Magnetic Case for iPhone 7 & iPhone 8 & iPhone SE 2022/2020 [Compatible with Magsafe] Translucent Matte Back Slim Thin Anti- Scratch Shockproof Protective Phone Cases for iPhone 8/7/SE-Black](https://m.media-amazon.com/images/I/61+L8Wb39SL._AC_UL960_FMwebp_QL65_.jpg)
GuaGua Magnetic Case for iPhone 7 & iPhone 8 & iPhone SE 2022/2020 [Compatible with Magsafe] Translucent Matte Back Slim Thin Anti- Scratch Shockproof Protective Phone Cases for iPhone 8/7/SE-Black

iPhone Charger Cord Lightning Cable (Apple MFi Certified) 6/6/10ft 3 Pack iPhone Cable Fast Charging Long Apple Charger Cable for iPhone 13 13 Pro 12 Pro 11 SE Max XS XR X, iPad Mini Air, iPod, AirPod
![iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad](https://m.media-amazon.com/images/I/517jTqwo1nL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad
![Aioneus iPhone Charger [Apple MFi Certified] 6FT USB Charger Cable Fast Charging USB to Lightning Cable Braided Cord Compatible with iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad](https://m.media-amazon.com/images/I/51ZEZjLgr2L._AC_UL1500_FMwebp_QL65_.jpg)
Aioneus iPhone Charger [Apple MFi Certified] 6FT USB Charger Cable Fast Charging USB to Lightning Cable Braided Cord Compatible with iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad
![[3+3 Pack] for Samsung Galaxy S26 Screen Protector, 9H Tempered Glass, Ultrasonic Fingerprint Compatible, HD Clear Case Friendly for Samsung S26 Tempered Glass Screen Protector 5G](https://m.media-amazon.com/images/I/71fBNpw7yNL._AC_UL960_QL65_.jpg)
[3+3 Pack] for Samsung Galaxy S26 Screen Protector, 9H Tempered Glass, Ultrasonic Fingerprint Compatible, HD Clear Case Friendly for Samsung S26 Tempered Glass Screen Protector 5G

TOCOL for Samsung Galaxy S26 Ultra Screen Protector Military Grade Shatterproof HD Tempered Glass Easy Installation Case Friendly 2 Packs Global Recycled Standard

LK 3 Pack for Top 9H+ Samsung Galaxy S26 Ultra Screen Protector, 12FT Military Grade Shatterproof Tempered Glass Screen Protector S26 Ultra with Easy Install Frame, 0 Bubble, Fingerprint Unlock
![[3+3 Pack] Glass Screen Protector for Samsung Galaxy S25 FE 5G, 9H Tempered Glass, Ultrasonic Fingerprint Unlock, HD Clear Case Friendly for Samsung Galaxy S25 FE Screen Protector](https://m.media-amazon.com/images/I/711SFOVLssL._AC_UL960_FMwebp_QL65_.jpg)
[3+3 Pack] Glass Screen Protector for Samsung Galaxy S25 FE 5G, 9H Tempered Glass, Ultrasonic Fingerprint Unlock, HD Clear Case Friendly for Samsung Galaxy S25 FE Screen Protector
![[3+3 Pack] for Samsung Galaxy S26 Screen Protector, 9H Tempered Glass, Ultrasonic Fingerprint Compatible, HD Clear Case Friendly for Samsung S26 Tempered Glass Screen Protector 5G](https://m.media-amazon.com/images/I/71fBNpw7yNL._AC_UL960_QL65_.jpg)
[3+3 Pack] for Samsung Galaxy S26 Screen Protector, 9H Tempered Glass, Ultrasonic Fingerprint Compatible, HD Clear Case Friendly for Samsung S26 Tempered Glass Screen Protector 5G

TOCOL for Samsung Galaxy S26 Ultra Screen Protector Military Grade Shatterproof HD Tempered Glass Easy Installation Case Friendly 2 Packs Global Recycled Standard

LK 3 Pack for Top 9H+ Samsung Galaxy S26 Ultra Screen Protector, 12FT Military Grade Shatterproof Tempered Glass Screen Protector S26 Ultra with Easy Install Frame, 0 Bubble, Fingerprint Unlock
![[3+3 Pack] Glass Screen Protector for Samsung Galaxy S25 FE 5G, 9H Tempered Glass, Ultrasonic Fingerprint Unlock, HD Clear Case Friendly for Samsung Galaxy S25 FE Screen Protector](https://m.media-amazon.com/images/I/711SFOVLssL._AC_UL960_FMwebp_QL65_.jpg)
[3+3 Pack] Glass Screen Protector for Samsung Galaxy S25 FE 5G, 9H Tempered Glass, Ultrasonic Fingerprint Unlock, HD Clear Case Friendly for Samsung Galaxy S25 FE Screen Protector

INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

Cordless Car Handheld Vacuum: Car Vacuum Cleaner with 16000Pa Ultra-Strong Suction, Brushless Motor & HEPA Filter - Lightweight Design for Drivers and Office Workers - Ashen

Compressed Air Duster-380000RPM Super Power Electric Air Duster, Rechargeable Brushless Motor Durable Blower for Fast Charging, Adjustable Mini Blower for House,Outdoors,Car

YKYI Cordless Vacuum Cleaner, 40KPa Suction 450W Motor with 2 Modes, 50-Min Runtime & Foldable Design, Cordless Stick Vacuum with LED Display for Home Hard Floors/Pet Hair(Royal Purple)

YKYI Cordless Vacuum Cleaner, 40KPa Suction 450W Motor with 2 Modes, 50-Min Runtime & Foldable Design, Cordless Stick Vacuum with LED Display for Home Hard Floors/Pet Hair(Royal Purple)

USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

HEYSTOP Switch 2 Case for Nintendo Switch 2, Protective Case Compatible with Nintendo Switch 2, Switch 2 Accessories Kit with Grip Controller ,Tempered Glass Screen Protector, Thumb Stick Caps




















