Nodejs MongoDB Create Collection

In MongoDB, the createCollection() method is used to create a collection. Is is the same as a table in MySQL.

Code :