OO Patterns - Regex - DOM




CS174

Chris Pollett

Apr 26, 2021

Outline

Variable Hoisting

The Module Pattern

More Faking Visibility

OO in Ecmascript 2015

Modules in Ecmascript 2015 and Beyond

Pattern Matching

Pattern Special Characters

Slash Patterns

Yet more special characters

Pattern Modifiers

More Pattern Methods

Quiz

Which of the following statements is true?

  1. To access the make property of a Javascript object my_object, one could use either the syntax my_object.make or my_object['make']
  2. Declaring a variable using let creates it with function scope.
  3. Javascript does not support anonymous functions.

Execution Environment

Document Object Model

Element Access in Javascript

More on Element Access