Find What Line is wrong
I'm making a small game I'm getting an error I don't know what is causing it can anyone tell me how to find the line that is causing the error?
repl.it's console doesn't tell you where the error is, so you should use a browser's console instead.
- Download your files from repl.it
- Keep your files in the same folder
- Open your html file
- Access the console. On windows, F12 is usually the shortcut to access the console.
Any modern browser will be more specific with errors and they will tell you in what file or line the error is at. You can use Chrome, but I think Firefox is best for debugging .js code.