Write Your JavaScript Code Here

const object1 = { a: 0, // Defining property 'a' with value 0 in object1. b: 1, // Defining property 'b' with value 1 in object1. c: 2, // Defining property 'c' with value 2 in object1. }; console.log(Object.getOwnPropertyNames(object1)); // Logging all property names of object1.

Output: