In JS, if I log a string to the console it is not showing properly ?
console.log(uniqueProducts); // console.log(\"uniqueProducts:\"+uniqueProducts);
You are concatenating an object to string
object
string
You can console a string and an object by separating it by comma(,)
,
you can console.log("uniqueProducts:", uniqueProducts );
console.log("uniqueProducts:", uniqueProducts );