Ask coding questions

← Back to all posts
Find What Line is wrong
[deleted]

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?

Comments
hotnewtop
BotsBoots

repl.it's console doesn't tell you where the error is, so you should use a browser's console instead.

  1. Download your files from repl.it
  2. Keep your files in the same folder
  3. Open your html file
  4. 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.

KittyCraft0

@BotsBoots this doesnt work on a school chromebook where the inspect menu is blocked, this is very problematic as i have the same problem but can't access the console