Open Notepad or TextEdit, open the template folder, then drag the . js file into Notepad or TextEdit and drop it. Open Notepad or TextEdit, select “file” then “open”, browse to the template folder, select “all file types” and open the . js file that way.
Press Command + Option + J (Mac) or Control + Shift + J (Windows, Linux, Chrome OS) to open the Console, right here on this very page. Figure 2.
- On your computer, open Chrome.
- At the top right, click More. Settings.
- At the bottom, click Advanced.
- Under “Privacy and security,” click Content settings.
- Turn on Allowed (recommended).
You need a browser and text editor. I use Firefox for browser and Notepad++ as a text editor. Instead alert you can use document.
- RJ TextEd. …
- Light Table. …
- NetBeans. …
- Brackets. …
- Komodo Edit. …
- Atom by Github. …
- SUBLIME TEXT 3.
Yes js can read local files (see FileReader()) but not automatically: the user has to pass the file or a list of files to the script with an html <input type=file> . Then with js it is possible to process (example view) the file or the list of files, some of their properties and the file or files content.