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:
- Go to the Start Menu and search for Run
- Open Run
- Type in notepad and press Enter
- Type in or paste your JavaScript code to Notepad
- Go to File and select Save As
- Save your file with
.js
extension (for example,code.js
)