How to save JavaScript file in Notepad?

To save JavaScript file in Notepad, first open Notepad, then type in your JavaScript code, then save the file with .js extension.

Here's are the steps:

  1. Go to the Start Menu and search for Run
  2. Open Run
  3. Type in notepad and press Enter
  4. Type in or paste your JavaScript code to Notepad
  5. Go to File and select Save As
  6. Save your file with .js extension (for example, code.js)