JSFiddle - React, Tailwind, and code Playground

by Vladymyr Shevchuk

JavaScript

const obj = {
  foo: 'bar'
};

const newObj = Object.create(obj);

console.log(Object.entries(newObj))

for (const key of newObj) {
  console.log(key);
}