JSFiddle - React, Tailwind, and code Playground

JavaScript

var a = 12;
var b = 3;

var obj = {
 c: 11,
 d:22
}

obj["a"] = a;
alert(obj.a);