0

Does JavaScript codes run on text editors?

I used note pad today to code js. it didn't work. I used the line break (\n) but it didn't break the line.. I tried this on the code play ground.. which supports JavaScript, the console or text editor?

21st Jul 2017, 7:56 PM
Otumian Empire
Otumian Empire - avatar
6 Answers
+ 3
JavaScript codes 're run in the browser, try the <br> in your JavaScript to break line
21st Jul 2017, 10:49 PM
LordGhostX
LordGhostX - avatar
+ 4
You can run it if you link it to an HTML file and execute that file.
21st Jul 2017, 8:47 PM
The Coding Sloth
The Coding Sloth - avatar
+ 3
try sublime, it more flexible or atom from github
21st Jul 2017, 8:09 PM
Вап
+ 1
no Javascript won't run on text editors they are meant to edit the text not run them.
21st Jul 2017, 8:24 PM
Danish Siraj
Danish Siraj - avatar
0
it worked.. but why doesn't \n work..
22nd Jul 2017, 7:23 AM
Otumian Empire
Otumian Empire - avatar
0
also.. I did some calculations using the code playground.. input.. document.write("I can sing").. this came on the page(editor).. input.. (6*2).. this came on another page, the console page with the result.. ?? does the
22nd Jul 2017, 7:26 AM
Otumian Empire
Otumian Empire - avatar