CodeNewbie Community

loading...

What's the difference between NodeJs and ExpressJS?

Jesse Adebisi (He/Him)
Just for fun
・1 min read

My understanding is that ExpressJS is only for writing web applications, but it's unusable in all other situations. Is this true? Is it true for NodeJS also?

Main question:

What's the difference between NodeJs and ExpressJS?

Thanks, beginner here 😊

Discussion (1)

Collapse
tuzzy08 profile image
Sage

NodeJs is a javascript runtime, that helps you execute javascript code. Javascript was created to run only in the browser, but Nodejs makes it possible to execute javascript outside of the browser like on a web server. It enables you to create a web server using it's http API. ExpressJs is built on top of node's http module, It makes it easy to develop web applications with javascript.