I know a lot of ways to create JS objects but I didn\'t know the Object.create(null)\'s one.
Object.create(null)
Question:
is it exactly the same as:
Creating objects by using {} will create an object whose prototype is Object.prototype which inherits the basic functions from Object prototype while creating objects by using Object.create(null) will create an empty object whose prototype is null.
{}
Object.prototype
Object