Compare ways to create objects.
Initializing...
const obj = { a: 1, b: 2 };
const obj = new Object(); obj.a = 1; obj.b = 2;
const obj = Object.create(null); obj.a = 1; obj.b = 2;
You can edit these tests or add more tests to this page by appending /edit to the URL.