PencilCoder

Custom Classes!

Goals:

  • Learn about classes "SPECIAL FUNCTIONS"---SEE https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
  • [referenced in Notes to Date Objects!

Coding Snippets:

  • coding snippets
  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes

Math and Computer Concepts:

  • When discussing objects, it’s important to note the difference between a class of object, and instances of that object. A category of object is referred to as a class, and a specific object of that class is referred to as an instance. We can have multiple instances of any class of object. For example, you can define multiple Turtle objects or multiple Pianos.
  • prototypes, classes

    Classes in javascript are actually nothing more than special functions. For that reason, that terminology will be introduced in a future lesson dedicated to creating custom classes, following several lessons on writing functions.

    A class is a type of function, from ECMAScript2015... see https://www.w3schools.com/js/js_classes.asp.

Activities:

Save each of the following in a folder called .