Week 5 Learning Objectives

NPM

  1. Explain the purpose of the package.json file and node_modules directory.

  2. Given multiple choices, identify the difference between npm’s package.json and package-lock.json files.

  3. Use npm –version to check what version is currently installed and use npm to update itself to the latest version.

  4. Use npm init to create a new package and npm install to add a package as a dependency. Then use require to import the module and utilize it in a JavaScript file.

  5. Given an existing GitHub repository, clone the repo and use npm to install it’s dependencies.

JavaScript Classes

  1. Define a constructor function using ES5 syntax.

  2. Define a method on the prototype of a constructor function.

  3. Declare a class using ES6 syntax.

  4. Define an instance method on a class (ES6).

  5. Define a static method on a class (ES6).

  6. Instantiate an instance of a class using the new keyword.

  7. Implement inheritance using the ES6 extends syntax for an ES6 class.

  8. Utilize the super keyword in a child class to inherit from a parent class.

  9. Utilize module.exports and require to import and export functions and class from one file to another.

Object-Oriented Programming

  1. What are the three pillars of object-oriented programming? What is each pillar’s definition?

  2. The SOLID principles - What does each letter stand for? - We talked about the S and L in more depth; know how to apply them and what they mean for us in JavaScript

  3. How to apply the Law of Demeter

Assessment Format