Javascript – How could I sum all the elements in an array which is inside of an object and display to the DOM or HTML elemnet?
I can't show to the browser the sum of the elements of an array inside of an object. Here is my JavaScript code: const products = { productName: [], description: [], quantity: [], unitOfMeasure: [] } let countLog = products.quantity;`…