Consider this piece of code that I'm currently working with:
compareList[productName] = productID + ',' + productHref;
console.log(productName + ' ' + productID + ' ' + productHref + ' ' + compareList.length);
This code snippet above results in the following output (with the link removed for privacy purposes):
Acer Iconia B1-790 [NT.LDFEE.002] 112576 link removed for confidentiality 0
Although all three variables appear to be valid strings, the assignment to the json object fails (as indicated by compareList.length logging as 0). Despite multiple attempts, I am still unable to identify the issue. Any assistance or insights would be greatly appreciated.