PureCode Software interview question

How do you connect a Node.js application to a database (e.g., MongoDB, MySQL)?