This question may sound very stupid, but I want to get a key/value pair for my object:
var a = {"e":1,"d":3,"f":4}
I tried with Object.keys(a) // returns ["e", "d", "f"]
this does not get me the values associated with the keys, how can I get both to be able to display in a page.
html:
<div>
<img src={value}/> //here i want value 1 to be displayed
{key} //with "e"
</div>
how do I do it? Thanks!!