HTML All The Things - Web Development, Web Design, Small Business cover image

JavaScript Basics: Learn These Concepts First

HTML All The Things - Web Development, Web Design, Small Business

00:00

The Differences Between Let and Var in Refactoring

There is a slight difference in scoping between let and var. You could try like you could literally just do a find and replace on your code and just try to replace all vars with let's and see what happens. But I would hesitate to recommend that because again, I have run into several issues where like I was using var and then I try to let and then all of a sudden it wasn't working in the intended way that I wanted it tolike it was taking. If you're going in and maintaining an old code base, would I recommend changing everything? It depends. As a general rule of thumb, if it's something small, I wouldn't bother. Do it tests

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app