How to link "JavaScript" to a html file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to link "JavaScript" to a html file?

I developing a game and I can't find a way to link my js file into my html code.

18th Dec 2018, 7:38 PM
Mike Bennett Jr.
Mike Bennett Jr. - avatar
4 Answers
+ 9
<script type="text/javascript" src="your_files_name.js"></script> Please remember to use the search bar for frequently asked questions to avoid duplicates. Cheers!
18th Dec 2018, 7:44 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 9
Please, keep going with JavaScript Tutorial! 👍 https://www.sololearn.com/learn/JavaScript/1125/
18th Dec 2018, 8:15 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 2
Gamesoid Europe Welcome to sololearn Search bar is here: https://www.sololearn.com/post/10362/?ref=app Tips: Remember to switch filter option to "Most Popular" first
19th Dec 2018, 3:58 AM
Gordon
Gordon - avatar
0
Hey, thanks for the tips.
19th Dec 2018, 4:02 AM
Mike Bennett Jr.
Mike Bennett Jr. - avatar