how to show list of object in javascript code example
Example 1: show filed of object javascript
var getKeys = function(obj){
var keys = [];
for(var key in obj){
keys.push(key);
}
return keys;
}
Example 2: show filed of object javascript
var keys = Object.keys(myObject);