How to create an object without a prototype?

We can create an object without a prototype using the Object.create method.

   const o1 = {};
   // logs [object Object] get this method to the Object.prototype 

   const o2 = Object.create(null);
   // the first parameter is the prototype of the object "o2" which in this
   // case will be null specifying we don't want any prototype
   // throws an error o2.toString is not a function