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

How to Store Multiple Values in JavaScript

I lean heavily towards if statements as well, just because I think they're more human readable. Where I see switch cases used a lot in JavaScript is if you're coming from a language that supports state machines where like based on what's happening on the screen right now,. Like in the UI, the state of your application changes. But having said that you can technically do that with an if statement as well, but it's just not used as often for a state machine. Mike wants to talk about loops and arrays. Specifically, how do you store multiple values in one place? And then once they're stored there, howDo you go through them and maybe change them more manipulate them in some

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