Prototype-based Inheritance in JavaScript with Constructors using Object.create()

// creating an object constructor. // and assigning values to it. const obj = { 1: 'marrc', 2: 'sort', 3: 'carry' }; // Displaying the countable property [key, value] // pairs of the object using object.entries() method. console.log(Object.entries(obj)[2]);//access obj

Output: