+ 3

Including js file

I am not getting output included with js web browser are not taking js file in folder even I gave the code https://code.sololearn.com/WW82K9zd7No1/?ref=app

20th Sep 2017, 12:25 AM
Medapati Vijay Reddy
Medapati Vijay Reddy - avatar
8 Réponses
+ 3
share your code
20th Sep 2017, 12:43 AM
Daniel
Daniel - avatar
+ 2
Make sure your js and html files are in right location. Btw it's a nice game. Well done.
20th Sep 2017, 2:11 AM
Calviղ
Calviղ - avatar
+ 2
Make sure you include the js in following format <script src="main.js"></script> Put it before closing body tag.
20th Sep 2017, 2:15 AM
Calviղ
Calviղ - avatar
+ 2
It should work. This is the common way to do.
20th Sep 2017, 2:26 AM
Calviղ
Calviղ - avatar
+ 1
ok I will try it
20th Sep 2017, 2:19 AM
Medapati Vijay Reddy
Medapati Vijay Reddy - avatar
0
yes there are in same location
20th Sep 2017, 2:12 AM
Medapati Vijay Reddy
Medapati Vijay Reddy - avatar
0
same folder
20th Sep 2017, 2:12 AM
Medapati Vijay Reddy
Medapati Vijay Reddy - avatar
0
it is not working
20th Sep 2017, 2:22 AM
Medapati Vijay Reddy
Medapati Vijay Reddy - avatar