Understanding the difference between Object.create() and the new operator.

Why is it important to know the difference?

  1. You will run across code that is not the absolute most recent Javascript.
  2. To be a great developer you need to learn how to deal with all types of code. That includes old code!
  3. Underneath the hood, the class keyword introduced in ECMAScript 6 utilizes the new operator behind the scenes.

Let’s start by examining what Object.create does:

var dog = {