Hey, does anyone know how to disable the console when I click on this div. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hey, does anyone know how to disable the console when I click on this div.

https://code.sololearn.com/WiX1KTiQsgPU/?ref=app

14th Oct 2017, 1:33 AM
Lil Drip
Lil Drip - avatar
2 Answers
+ 12
just redefine it in your Javascript before console statements, done. console.log = (function() {}); //anonymous function for es6 & higher. OR console.log = function() {}; // for es5 lower;
14th Oct 2017, 3:03 AM
Lord Krishna
Lord Krishna - avatar
+ 5
Can't disable in here Just remove console.log manually or even another way :(
14th Oct 2017, 2:06 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar