JSFiddle - React, Tailwind, and code Playground

JavaScript

var obj = {mem:1};

for (var a in obj)
{
    alert(a);
    alert(eval("obj." + a));
}