2min chapter

Develop Yourself cover image

#49 - A Complete Guide to Learning JavaScript

Develop Yourself

CHAPTER

Using Javascript to Find Out Which Ice Cream Flavor Has the Most Votes

A program in javascript that can find out which Ice cream flavor has the most votes. We're going to put all the votes in an array and we're just going to have strings Right? Either this a string of chocolate a string of vanilla or a string of strawberry So let's imagine we have an array with 25 strings inside each one of these strings is either strawberry Chocolate or vanilla And our job using javascript is to figure out which one of these is represented the most Which string comes up in this array the most number of times so it's at this point that we're using our problem solving skills to think through How we might do this.

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