SUMMARY

Containers Summary

Below is a summary of all of the programming constructs discussed in this app:

Data Containers

  1. Variable – is a container for a SINGLE data type
  2. Array – is a container for MULTIPLE data types
  3. Property – is a container to STORE variables of an object

Looping Containers

  1. For Loop – is a container to REPEAT lines of code
  2. While / Do While Loop – is a container to REPEAT lines of code
  3. For…In / For…Each Loop – is a container to REPEAT lines of code for an object or an array???

Action Containers

  1. Function – is a container for a calculation of numbers or a concatenation of strings or to perform a series of steps (a recipe maker)
  2. Method – is a container to STORE a function of an object
  3. Event – is a container to define a TRIGGER for an object

Condition Containers

  1. If Statements – is a container to TEST if a SINGLE condition is true
  2. If / Else Statement – is a container to TEST IF a condition is TRUE else do something ELSE
  3. Switch Statement – is a container to TEST for MULTIPLE conditions

Blueprint / Object Containers

  1. Classe – is a container to DEFINE properties and methods of an object
  2. Prototype – is a container DEFINE properties and methods of an object (JavaScript only)
  3. Object – is a container for to DESIGN an object based on a class or prototype (blueprint)

Trigger Containers

  1. Event – is a container to define a TRIGGER for an object
  2. Event Listener / Handler – is a container to ATTACH an event to an object
  3. Event Object – is a container to CAPTURE property of an object

Content of a container is contained within a set (pair) of:

  1. Square brackets: “[ … ]” (e.g., an array)
  2. Curly braces: “{ ... }” (e.g., an object)
  3. Parenthesis: “(...)” (e.g., a function, method, loop, conditional statement, etc.)