JSFiddle - React, Tailwind, and code Playground by kukicvladimir July 11, 2017 JavaScript var myObj = { 'test': "test success!" }; var key = 'test'; alert(myObj[key]);