JSFiddle - React, Tailwind, and code Playground

JavaScript

var testy ="hello";
        var x = {"a":"1", "b": ""+testy+""};
        var y = {"a":"1", "b": '"'+testy+'"'};
    alert(x.b);
    alert(y.b);