hankknight
asked on
JavaScript: Get Key and Value from Object
I can get the key from an object. How can I also get the value?
var data = {"One":1,"Two":2, "Three":3};
for (var key in data) {
alert('Key:' + key + '\nValue:' + '???' )
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window