How to update Node.js

1. Check the current version node -v 2. nstall n package using npm if you do not have it installed yet. sudo npm install -g n 3. Then, you can update your Node.js to the version you want. sudo n stable

Some notes on CRUD application – Node.js, Express.js & MongoDB

CRUD – READ In Express, we handle a GET request with the get method: app.get(endpoint, callback) endpoint is the requested endpoint. It’s the value that comes after your domain name. Here are some examples: When you visit localhost:3000, you’re actually visiting localhost:3000/. In this case, browsers requested for /. You’re reading this article on …