Creating and Manipulating Documents Quiz

For quiz " Insert Order" how below option is correct as array is never closed?

db.pets.insert([{ "_id": 1, "pet": "cat" },
                { "_id": 2, "pet": "dog" },
                { "_id": 3, "pet": "fish" },
                { "_id": 3, "pet": "snake" })

This is simply a typo in the explication of the answer. The array is closed correctly in the question.

A must read before publishing more code. See Formatting code and log snippets in posts

Hi @vensanravi, thank you for pointing this out. I have updated the same in the course and it will get reflected soon for all our users.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer