+ 1

How can we write javascript without html file?

30th May 2018, 2:23 AM
aditya saxena
aditya saxena - avatar
5 Respuestas
+ 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
30th May 2018, 2:39 AM
Mickel
Mickel - avatar
+ 8
You can write you JavaScript code in any TextEditor and save it with extension .js
30th May 2018, 2:27 AM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
+ 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
30th May 2018, 2:33 AM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
+ 1
for ecample
30th May 2018, 2:28 AM
aditya saxena
aditya saxena - avatar
0
simplymake an new file with extension .js that set
9th Jun 2018, 9:42 AM
Shivam Sandip Gokarankar
Shivam Sandip Gokarankar - avatar