Answers for "which for loop is better to iterate object in javscript"

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 "which for loop is better to iterate object in javscript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language