Answers for "Which of the given loops in JavaScript can be used to iterate properties of an object?"

53

javascript iterate through object properties

var person={
 	first_name:"johnny",
  	last_name: "johnson",
	phone:"703-3424-1111"
};
for (var property in person) {
  	console.log(property,":",person[property]);
}
Posted by: Guest on July-22-2019

Code answers related to "Which of the given loops in JavaScript can be used to iterate properties of an object?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language