0

How can we type javascript in notepad

Is it compactible with windows 8 or 10 because mine is 7

10th Jun 2018, 2:52 PM
AHRK Productions
AHRK Productions - avatar
3 Answers
+ 6
Or you can save a external JavaScript file with .js extension. You just need to open the notepad and write a JavaScript code and save it with .js extension. And attach it where you want. You can attach it in different html pages. Like this <script src="name.js"></script> and add it to body or head only. Both works fine.
10th Jun 2018, 3:14 PM
Akash Pal
Akash Pal - avatar
+ 5
Open up notepad, write the text below, put your javascript where it says your javascript code goes here and don't forget to save it with the .html extension. And yes, it does work with windows 7, 8 and 10. <!DOCTYPE HTML> <html> <head> <script type="text/javascript"> //Your javascript code goes here </script> </head> <body> </body> </head>
10th Jun 2018, 2:57 PM
Alexandru Turculet
Alexandru Turculet - avatar
+ 3
Yeah you can use notepad as an editor. But there are much better alternatives. Writing code in notepad is like building an airplane with a stone hammer.
11th Jun 2018, 3:52 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar