Learn JavaScript

Lesson 8 of 9 · Map, Set, WeakMap, Iterators, Generators and Regular Expressions

Module 16 · Map, Set, WeakMap, Iterators, Generators and Regular Expressions

Cheat Sheet: The Regex Syntax, and Every Map, Set, WeakMap and Generator Method on One Page

ProReading

Keep this page open while you solve this module's problems. The first four tables are the regular expression language: the pieces, the flags and the methods that use them. The next three list every method of the collections and generators. The last two are the choice of tool and the bugs that code review keeps finding.

Checking what this lesson needs for you…

What is inside Cheat Sheet: The Regex Syntax, and Every Map, Set, WeakMap and Generator Method on One Page

  1. The pieces of a pattern
  2. The flags
  3. The regex methods
  4. Safe patterns
  5. Map, Set and WeakMap
  6. Iterators and generators
  7. Which tool
  8. The six bugs

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test