Understanding the difference between Object.create() and the new operator.
2 min readOct 13, 2017
Why is it important to know the difference?
- You will run across code that is not the absolute most recent Javascript.
- To be a great developer you need to learn how to deal with all types of code. That includes old code!
- 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…