0

Hey guys, i have a question

of i write a javascript and i wanna open it with firefox, there is no text just the javascript i wrote. Can somebody help me?

23rd Dec 2017, 7:52 AM
Lukas Schwientek
Lukas Schwientek - avatar
4 Answers
+ 1
Ook, what is your problem ?
23rd Dec 2017, 7:54 AM
Iman Jamaatlou
Iman Jamaatlou - avatar
+ 4
I'd recommend setting up a basic .html file and a separate .js file. Store both files in the same directory. You can then include the script file like this. <!DOCTYPE html> <html> <body> <script src="myJavaScriptFile.js"> </script> </body> </html> Once you've done this, open the .html file in Firefox. Any JavaScript that outputs to the page should show.
23rd Dec 2017, 9:12 AM
Duncan
Duncan - avatar
0
if i want to write "hello" there are just things like <html> and no real text
23rd Dec 2017, 7:57 AM
Lukas Schwientek
Lukas Schwientek - avatar
0
Whats your file extention?
23rd Dec 2017, 8:02 AM
Iman Jamaatlou
Iman Jamaatlou - avatar