YoVDO

JavaScript: Maps and Sets

Offered By: LinkedIn Learning

Tags

Data Structures Courses Javascript Courses Object-oriented programming Courses

Course Description

Overview

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

Related Courses

Intro to Computer Science
University of Virginia via Udacity
Design of Computer Programs
Stanford University via Udacity
Analytic Combinatorics, Part I
Princeton University via Coursera
Algorithms, Part I
Princeton University via Coursera
Algorithms, Part II
Princeton University via Coursera