JavaScript Problem: Finding All Occurrences of a Character in a String

Опубликовано: 10 Октябрь 2024
на канале: All Things JavaScript, LLC
4,778
103

In today's tutorial we are going to deal with a JavaScript problem that has to do with analyzing a string. We will create a function that will accept a string and a character and then return an array that contains the index of all occurrences for that character.

Would you like to help keep this channel going?
https://www.patreon.com/bePatron?u=73...

Earn SCRIPT: https://app.tryroll.com/claim/SCRIPT-...

Unlimited access to EVERY course for one low price: https://allthingsjavascript.teachable...

Access to EVERY course via subscription (get 2 months free): https://www.skillshare.com/r/profile/...

Courses offered on Udemy at a discount (access from my site): http://allthingsjavascript.com/course...

Tutorials referred to in this video:
Spread Operator:    • Using the JavaScript Spread Operator  
Reduce Method:    • The Magic of the reduce Array Method  
Arrow Functions:    • Arrow Functions  
Ternary Operator:    • JavaScript Fundamentals: Understandin...  

Need Help? https://pensight.com/x/steven-hancock

For more resources on JavaScript:
http://www.allthingsjavascript.com

#javascript #AllThingsJavaScriptLLC