Answers for "javascript iterate properties of object"

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
1

object iterate in javascript

for (let key in yourobject) {
  console.log(key, yourobject[key]);
}
Posted by: Guest on January-05-2021

Code answers related to "javascript iterate properties of object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language