SyntaxFix
Write A Post
Hire A Developer
Questions
For getting key
var a = {"a":"1","b":"2"}; var keys = [] for(var k in a){ keys.push(k) }
For getting value.
var a = {"a":"1","b":"2"}; var values = [] for(var k in a){ values.push(a[k]); }