Answers for "javascript iterate object one by one add value"

53

js iterate object

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
10

js object keys

var myObj = {no:'u',my:'sql'}
var keys = Object.keys(myObj);//returnes the array ['no','my'];
Posted by: Guest on April-08-2020

Code answers related to "javascript iterate object one by one add value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language