SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to get the key name of myVar object then you can use Object.keys() for this purpose.
myVar
Object.keys()
var result = Object.keys(myVar); alert(result[0]) // result[0] alerts typeA