Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calculateTotalValue() {
- var products = {{0.20 - [đšī¸] Matriz items (search)}}; //substitua por sua matriz items
- var total = 0;
- for (var i = 0; i < products.length; i++) {
- var indice = products[i];
- total =total + (indice.price * indice.quantity);
- }
- return total.toFixed(2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement