In the following code I am accessing the cookieCode in the var MasterTmsUdo
but I am unable to access this variable.
Can anyone tell me how can I access this variable inside var MasterTmsUdo
?
var cookieCode="True";
console.log(cookieCode);
var MasterTmsUdo = { 'CJ' : { 'CID': ' 897415', 'TYPE': '894', 'AMOUNT' : '35.00', 'OID' : "115", 'CURRENCY' : 'USD','FIRECJ' : cookieCode, } };
It's a property of the
CJ
object, therefore you can access it via:Therefore you could have: