Don't Mess Up This Technical Interview Question | Use JavaScript Map() & Set() Objects
π¦Έ Become A VS Code SuperHero Today: https://vsCodeHero.com
π§πΎπ€π§π½ Join my Discord developer community: https://discord.gg/A9CnsVzzkZ
Problem: "Given a string of words, count all occurrences of every word."
This is a common coding problem you may get in a technical interview.
In this video, we'll look at solving this with JavaScript Map & Set Objects.
_____________________________________
π’ Deploy for FREE on Vercel: https://vercel.com/ambassadors/codestackr
π FREE 7-Day trial at Treehouse: https://treehouse.7eer.net/codeSTACKr
_____________________________________
π οΈ Tools I use:
π codeSTACKr Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
π STACKr Code Font (Exclusive to my VS Code Course - https://vsCodeHero.com)
π SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
_____________________________________
β±οΈ Timestamps β±οΈ
00:00 - Intro
00:19 - Tackling the Question
02:09 - Use a Map Object to Solve the Problem
04:59 - Other Map Properties & Methods
05:18 - Iterating Over a Map
06:49 - Find a Key & Return the Value
09:20 - Convert a Map to Array
10:01 - Use a Set Object to Get Unique Values
_____________________________________
π Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________
π Watch Next:
Playlist: Web Development For Beginners - https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________
π Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr
Facebook: https://facebook.com/codeSTACKr
_____________________________________
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
#codeSTACKr #JavaScript #learntocode