I have a simple object that always has one key:value as var obj = {'mykey':'myvalue'}
What is the fastest way and elegant way to get value without doing it really?
for (key in obj) { console.log(obj[key]); var value = obj[key]; }
How can I access the value through index 0 or something else?
javascript object
HP
source share