Saturday, 11 May 2019

Difference using "new" keyword?

Good day everyone. I'm learning node mongodb. although this 2 things work just fine. but I want to know the difference and what is preferable with this twoconst oId = new require('mongodb').ObjectID; const oId = require('mongodb').ObjectID;

Submitted May 11, 2019 at 04:01PM by phil_grow

No comments:

Post a Comment