Setting up a development environment for JavaScript can vary depending on your specific needs and operating system.
Windows
For windows users, here are some general steps:
Code Editor
You’ll need a code editor to write and edit your JavaScript code. Popular options includes:
Download and install the code editor of your choice. But Visual Studio Code is highly recommended.
Don't code with nano, Notepad, Notepad++ or Gedit.
You can also install the following extensions in Visual Studio Code
Node.js
Node.js is a JavaScript runtime that allows you to run JavaScript code on your computer.
Download and install the “Recommended For Most Users” version of Node.js from the official website.
For some windows systems, you must re-start your system after installing Node.js
Don't install any version less than the latest "Recommended For Most Users" version.
Node package manager npm will be automatically installed when you installed Node.js. It also comes with npx as well.
Other Operating Systems
Please visit Node.js installation instructions. for other systems