JSFiddle - React, Tailwind, and code Playground by Sahin Deniz April 09, 2019 JavaScript let a = 1; let b = {[a]: 5, b:2} console.log(b);