javascirpt – How to sumthe total quantity of a column when the numbers of rows is dynamic?

How do I write a function to sum the total quantity of a specific column in a table by using javascript

I’m trying to sum the quantity in the same column.
I have 15 columns in my table and more than 1000 of rows. One of the column was the quantity of stock on hand.

When i do filtering, the numbers of row will change accordingly, I only want to display the sum of the column of the rows displaying.

Was quite fresh to javascript, hope to get some help please. Thank you!