This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS Object Methods

The Object.entries() method returns an array of the key/value pairs in an object:

const person = {
  firstName : " John ",
  lastName  : " Doe ",
  age     : 50,
  eyeColor  : " blue"
};

let text = Object.entries(person);
document.getElementById("demo").innerHTML = text;