js have object key code example
Example 1: js object keys
var myObj = {no:'u',my:'sql'}
var keys = Object.keys(myObj);//returnes the array ['no','my'];
Example 2: javascript string keys
// For string keys you have to use this
var Array = {}
// Not
var Array = []