+ 2
How to find errors in JavaScript??
I use notepad and internet explorer browser to write and run js code but it is very difficult to find errors
5 ответов
+ 1
all errors occurred in javascript are logged in javascript console
it shows where error occurred type of error but be careful while using console as it says warning too specially cut paste or link
0
just type -error
0
where
0
use inspect it's super useful just do control shift I and you will be able to see all of your errors
0
Firstly, install a Google Chrome :D
Next, use a developer kit, which use all browsers. For open Developer Tools click f12.
Finally: If you are not sure in your code, use try..catch block or use a function like this :
function(err) {
f(err) throw err;
//your Code
}