Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument?
(a) x = ObjectIdAdd()
(b) x = addObjectId()
(c) x = ObjectId()
(d) none of the mentioned
(a) x = ObjectIdAdd()
(b) x = addObjectId()
(c) x = ObjectId()
(d) none of the mentioned
Right option is (c) x = ObjectId()
The best I can explain: ObjectId() constructor is used with no argument for new object.