DEV Community

Taseenul Hoque Bappi
Taseenul Hoque Bappi

Posted on • Updated on

Need to know Node.js & Express.js

What is Nodejs?

What is the Difference between Nodejs and JavaScript?

Nodejs is a powerful web framework, cross-platform JavaScript runtime environment. Nodejs using to create server-side web applications. It is also used for large-scale application development, especially for video streaming sites, single-page applications, and others. Node.js is used in asynchronous programming.

Nodejs and JavaScript:

  • JavaScript is a programming language, that runs in a web browser.
  • Nodejs is a JavaScript runtime environment.
  • Nodejs is used in backend application
  • JavaScript is used in the frontend.

What is Express.js?

Express.js is a web framework that is used in Node.js. This is the most popular web framework.

Express code looks like:

const express = require('express');
const app = express();
const port = 5000;
app.get('/', function(req, res) {
  res.send('Hello Express!')
});
app.listen(port, function() {
  console.log(`App listening port is ${port}!`)
});
Enter fullscreen mode Exit fullscreen mode

Latest comments (0)