I have a JavaScript object array. When write console.log(myarry) it will show in the console in the below form.
console.log(myarry)
Array[2] 0: Object one: \"one\"
am trying to get the key or value to a variable and print it.
then you could
var myarry = [{ one: 'one' }, { two: 'two' }]; for (var key in myarry) { var value = myarry[key]; console.log(key, value) }