db.Fine.insertOne({ fineID: "F001", amount: 50 });
db.Fine.insertOne({ fineID: "F002", amount: 0 });

db.Fine.find();

var total = 0;
db.Fine.find().forEach(function(doc) {
    total = total + doc.amount;
});
total;

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: