Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyMongoDB_id and ObjectIdSingle-choice MCQ

What does this code print?

const ObjectId = require("mongodb").ObjectId; const a = new ObjectId("507f1f77bcf86cd799439011"); const b = new ObjectId("507f1f77bcf86cd799439011"); console.log(a === b); console.log(a.equals(b));