Skip to content
Advertisement

Tag: arrays

I cannot find a way to print a JSON Value

I have this JSON object that prints the information about currencies. I am trying to get the data for a specfic currency that is USD. When I type JSON.data.bpi.USD it says UNDEFINED. I need help with this. Answer You can access to your object properties with Property accessor dot notation:

Can’t get values past array[0] to translate properly

Okay, to start with I should mention this is a very small personal project, and I’ve only have a handful of coding classes several years ago now. I can figure out a lot of the (very) basics, but have a hard time troubleshooting. I’m in a little bit over my head here, and need a dumbed down solution. I’m trying

Javascript Subtract between two arrays of objects

Hi can anybody help me to implement the right/clean way of subtracting between two arrays of object. My case (backend) is that I fetch Products data from mongodb, then I also have Trolley data that is fetched from MySql, what I’m trying to do is that if product stock is subtracted by quantity in trolley & the result is lower

Advertisement