From the learning perspective, writing everything yourself is correct.
In the real world, though, most of the common coding tasks have been already solved. It’s pointless to reinvent the wheel and it’s a lot more convenient to use the ready-made solutions.
One of the superpowers of modern JavaScript is npm, short for Node Package Manager.
It was first released in 2010 and in 2022, it includes 500k open-source modules that allow you to enhance the functionality of your Node.js applications for free.
To use
npm successfully, you need to first
learn the basics of the command line, specifically, you should be able to navigate into the root folder of your project using the terminal.
You can learn all you need to get started with
npm in a new lecture that I’ve just published on
js.coderslang.com and then solidify your skills with the new coding tasks.
If you’re looking for shortcuts, then you’ll find the most important steps here:
Cheers!