Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
}
 
PREVIOUS NEXT
Tagged: #javascript #iterate #object
ADD COMMENT
Topic
Name
1+2 =