This guide is based on Visual Studio Code only. We strongly recommend you using Visual Studio Code because it is free to use, open source - and runs everywhere. What else you need?
Visual Studio Code runs everywhere. You know what to do, and how to install an application. (Like seriously if you don't know, why are you even trying to code when you get no knowledge of basic computer softwares)
Bring the habit to read docs. You will suffer later otherwise.
Installing Node.js
Node.js is your environment of coding discord bots based on discord.js.
DO NOT INSTALL LTS NODE VERSION! You have been warned. Discord.js requires at least Node.js 16.x and above in order to work. You have to download the "Current" aka latest version that is above 16.
Get started downloading Node.js at the below link and install it as you do for other packages or applications based on your operating system.
Get the latest node.js version (16+) in order for discord.js to work.
Installing Git
You have a choice to either install Git-Scm or Git CLI. Both are equally good (as per my opinion), but still I do recommend using Git CLI over Git-Scm (Ignoring the fact that I use Git-Scm) So yeah!