Answers for "how to iterate through an object in javascript and display it"

6

javascript iterate object

let person={
 	first_name:"johnny",
  	last_name: "johnson",
	phone:"703-3424-1111"
};
for (let i in person) {
  let t = person[i]
  	console.log(i,":",t);
}
Posted by: Guest on March-18-2020

Code answers related to "how to iterate through an object in javascript and display it"

Code answers related to "Javascript"

Browse Popular Code Answers by Language