+ 1
How can we write javascript without html file?
5 Respostas
+ 6
Yo can write it in any editor, just save it with .js extension.
One way to execute it (since you are not using HTML to import the scripts) can be using the web browser console or using a JavaScript stand-alone environment (like NodeJS).
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Shells
+ 8
You can write you JavaScript code in any TextEditor and save it with extension .js
+ 8
write your JavaScript code in Notepad then save it as "new1.js" or any other name but remember to put the extension .js after the name
+ 1
for ecample
0
simplymake an new file with extension .js
that set