javascript - How can I get the key of my object? -


i have following object:

var text = { 'one' : 1, 'two' : 2, 'three' : 3}; 

i want write key 'one' console.log(). how can it?

try:

var text = { 'one' : 1, 'two' : 2, 'three' : 3}; (var in text){     console.log(i); } 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -