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

Jonathan Voxland
2 min readOct 13, 2017

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 = {
eat…

--

--