renny
Coder
Hi I am working on a game of sort. I have a html file and a java script file.
When I run the html file in firefox I get what is in the html file, but not a thing in the js file.
So I put a onload something log (see code below) in the js file. that show up when I raned the html.
I know it is seeing the js file. Is their a way to de bug js or do I just have to go line by line
with the tutorial and see where I messed up.
here is what I ran in the js file and it did show up, but funny looking
I am using visual studio code a and editor. window 7
I most likely will have to go line by line, I know that
Thank
Renny
P.S. I could not find a place that had html, css and java script so I put it here.
When I run the html file in firefox I get what is in the html file, but not a thing in the js file.
So I put a onload something log (see code below) in the js file. that show up when I raned the html.
I know it is seeing the js file. Is their a way to de bug js or do I just have to go line by line
with the tutorial and see where I messed up.
here is what I ran in the js file and it did show up, but funny looking
Code:
window.addEventListener('load', (event) => {
console.log('this is the java script file');
});
I am using visual studio code a and editor. window 7
I most likely will have to go line by line, I know that
Thank
Renny
P.S. I could not find a place that had html, css and java script so I put it here.