Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

iterate object in js

//To access object Key,Val as an Array
object_name={
name:"vinod",age:21
}
console.log(Object.entries(object_name))
//output:[["name","vinod"],["age","21"]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #object #js
ADD COMMENT
Topic
Name
2+5 =