+ 1
How do I make it so that SoloLearn console does not appear when errors happen?
I know why the error happens, this is just an example, can you make it so that the error doesn't appear in the console without actually fixing the error, I know I can use try{}catch{}, but this also doesn't always prevent the console from appearing, I'm looking for a way to make sure the console never appears: https://code.sololearn.com/W69x01AaV8tL/?ref=app
5 Respuestas
+ 1
//ugly way
console.error = function() {
console.log('test');
}
try{
console.log(example);
}
catch(e) {
console.log();
}
0
https://www.sololearn.com/Discuss/2767962/?ref=app
0
@rkk I tried this and it didn't work, so I decided to ask again but include the code as well, so that someone perhaps can edit it and send me the link
0
rkk the problem is that for audio errors this will not work:
https://code.sololearn.com/W7F6d2jfR79S/?ref=app