DEV Community

Cover image for Topics You Must Know Before Learning Nodejs
Anushka
Anushka

Posted on

Topics You Must Know Before Learning Nodejs

Hey👋 Devs, welcome to my first post. Currently, I am into Backend development, so thought of writing about the topics which one must know before diving into node.js. So let's go🚀

Asynchronous JavaScript - Asynchronous JavaScript is one of the most important topics if you are going to learn node.js next.
Asynchronous programming gives you the power to run a potentially long task and be responsive to other events without waiting for the task to finish.

If you are thinking about event handlers then you are right✔️
Event handlers and callbacks are also asynchronous.

Here's a simple example of asynchronous JavaScript

// This function makes a network request and logs the response
async function makeRequest() {
  const response = await fetch('https://example.com');
  console.log(response);
}

// This function calls the makeRequest function and logs the result
async function main() {
  const result = await makeRequest();
  console.log(result);
}

main();

Enter fullscreen mode Exit fullscreen mode

Key topics of asynchronous programming are
i) Timers
ii) Promises
iii) Async and Await
iv) Closures
v) Event Loop

these are fundamental part of Node.js

Before diving deep with Node.js you should know about 'this' operator, Arrow function, Lexical Structure, Template Literals and be familiar with ES6 and beyond.

Having a good understanding of the HTTP protocol is a must - Most common HTTP methods are GET, POST, PATCH, PUT, DELETE, HEAD

Command lines - I won't say that its necessary to have a knowledge about command lines before learning Node.js but its beneficial to have a basic understanding.

That's it. If you are familiar with the above topics and have knowledge of these then you are ready to dive into the world of backend development using Node.js and Express.js 🚀

Happy Coding!⭐

Top comments (1)

Collapse
 
lymah profile image
Lymah

Thanks for sharing.