how can i see all the properties of an object 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);