Answers for "how to loop through keys of an object in javascript and make it a list"

53

javascript loop through object example

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 "how to loop through keys of an object in javascript and make it a list"

Code answers related to "Javascript"

Browse Popular Code Answers by Language