I’ve got my answer for the question, no problem. Before I submit my answer, I have 2 small issues:
- . I wanted to programmatically truncate the average to 1 digit.
It’s possible (probable?) that I missed an instruction in a previous lesson. I’m aware that there’s no $round operator and $trunc appears to only round to the nearest integer, but there are plenty of ways to handle it using one of the myriad approaches JS/MQL enable…
Just wanted to confirm we’re not rounding, just a straight truncation. So for example, if a theoretical average was 7.36, I’d want to use 7.3 and not round up to 7.4.
- If I pasted my terminal output into the Answer Form, there’d be a slight difference in whitespace…
I.e. “_id” : , rather than “_id”:
I figure it should be as exact as possible, so be strict w/ whitespace, etc, but just wanted ask b/c we’ve only got the 3 attempts.