I looked for a while to find a solution to this but I guess either I am not wording it right or maybe this solution isn't common.
Please see my below example:
var someScript = '<scr'+'ipt type="text/javascript" src="" tag="vendorId"
async="async"></scr'+'ipt>';
In the tag attribute, 'vendorId' is actually a variable that has a value. How can I render the value of the variable rather than the key?