Hey guys so i came across some unexpected behavior in js... and i have no idea why this happens... can someone explain to me? Thank you
campaign = {
"ppmv_ref": "1324232571",
"type": "value off",
"title": "20% off the weed item",
"percentage": "20",
"product": "weed",
"productId": "46482649",
"quantity": "50",
"startDate": "10/22/2018",
"expirationDate": "10/23/2018",
"couponFlag": "true",
"active": "true"
}
condition = campaign.active === true;
console.log(campaign.active)// logs true
console.log(condition); // logs false