JSFiddle - React, Tailwind, and code Playground

by herodrigues

HTML

<span id="out"></span>

JavaScript

$('#out').html('obj[path[k]]');

var obj =  {
"couponAppliedFromCheckout": ""
"errorExist": "true"
};

var k = 0;
var path = "errorExist";