How to remove the console? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to remove the console?

I've been seeing trending codes but i can't see others fully because of the console thing below.

8th Apr 2017, 6:34 PM
Mike Pancake
Mike Pancake - avatar
11 Answers
+ 18
@Burey All of them. I think this is happening because of the new update :(
8th Apr 2017, 11:08 PM
Gami
Gami - avatar
+ 15
@Burey I think it is about your account. I used Sololearn on another device, and trying to code on it, and this console log just stuck on every web code. This started to happen to me as well a week ago... Some codes which didn't have the log popped up, now have it and it is really annoying -_-
8th Apr 2017, 11:01 PM
Gami
Gami - avatar
+ 12
@Burey It is not about the device. I went to snother device, same Sololearn version, but the same problem
9th Apr 2017, 10:22 AM
Gami
Gami - avatar
+ 8
oh.....if you ever find a way please tell me xD some libraries (p5.js for example) causes a console log to be activated (i believe it originates from the motion sensors support) as if now there is no known way to prevent it from happening, except to abstain usage of the code which causes the log to happen (in some cases, that is impossible as it loses too much functionality). what i do is just leave some empty space in my codes (it sucks but nothing i can do about it) you can also cannot know in which device some logs would occur (i've seen a code of mine which caused a log for one type of device but didn't in another type)
8th Apr 2017, 6:50 PM
Burey
Burey - avatar
+ 8
one of the problems is that since recent updates, the console log just show up without actually logging what activated it, so you cannot verify what is the exact cause for it. @Gami, any specific codes you remember?
8th Apr 2017, 11:07 PM
Burey
Burey - avatar
+ 8
You can override the console object and/or methods to desactivate user call to them at begin of your code: var console = {}; // empty object: if alone, call to any console method not redefined will throw an 'Uncaught TypeError: console.xxx is not a function' exception console.log = function() {}; // any call to console.log() will now do nothing This don't avoid 'normal' ( built-in errors/logs ) console outputs, but it's more easy to delete all call to log() method without searching each line where the call appear :P The others methods provided by the 'console' object can be found there: https://developer.mozilla.org/en-US/docs/Web/API/Console
8th Apr 2017, 11:49 PM
visph
visph - avatar
+ 7
@Gami seriously??? what device are you on? mine is samsung galaxy s5 android 6.0.1 latest SoloLearn update as well
8th Apr 2017, 11:14 PM
Burey
Burey - avatar
+ 5
;_;
9th Apr 2017, 10:37 AM
Burey
Burey - avatar
+ 4
Update: mailed sololearn regarding the console and got this reply: "Our next update will auto-hide the Console if there is no output there." now just have to wait and see how this will work :)
11th Apr 2017, 8:55 AM
Burey
Burey - avatar
+ 4
A show/hide button for the console would be more helpful.
11th Apr 2017, 10:54 AM
seamiki
seamiki - avatar
+ 4
@seamiki that's close to what i suggested in the mail i sent. for now we will have to wait and see
11th Apr 2017, 10:57 AM
Burey
Burey - avatar