Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

JavaScript: Maps and Sets

via LinkedIn Learning

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This course provides a detailed guide to JavaScript maps and sets, exploring common use cases and surprises they hold.

Syllabus

Introduction
  • Get to know JavaScript maps and sets
  • What you should know
1. Maps
  • The Map object defined
  • Build your Map object with the set method
  • Access a value with get
  • Does the map have your key?
  • Determine map size
  • Remove key-value pairs with clear and delete
  • Map: Keys and values methods
  • Map contents with the entries method
  • Loop over a map with forEach
  • Challenge: Maps
  • Solution: Maps
2. WeakMaps
  • What is the WeakMap object?
  • Same methods, different map
  • Challenge: WeakMaps
  • Solution: WeakMaps
3. Sets
  • The Set object defined
  • Add values to your set
  • Does Set have your value?
  • Get your set size
  • Delete and clear values in your set
  • Iterate over values in a set
  • Iterate over a set with entries
  • Iterate over your set with forEach
  • Challenge: Sets
  • Solution: Sets
4. WeakSets
  • What is the WeakSet object?
  • Same methods, different set
  • Challenge: WeakSets
  • Solution: WeakSets
Conclusion
  • Next steps

Taught by

Jamie Pittman

Reviews

4.8 rating at LinkedIn Learning based on 326 ratings

Start your review of JavaScript: Maps and Sets

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.