2min chapter

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

CHAPTER

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

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode