Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
wow its like syntax error is shutting the hell out of console.
18th Jul 2019, 1:47 AM
Danielov
Danielov - avatar
+ 1
console.log only disables the logs. console.error is responsible for error messages, but I don't think you can disable that
17th Jul 2019, 8:40 AM
Airree
Airree - avatar
+ 1
Why it would be working? Overwrite the console.log function dont mean than the js parser cannot write into console. All depends by how js interpreter write into console. Its hard than who implemented js interpreter use a "writable" function (like console.log) to write into console... Is much more realistic if it use a "native" (eg. not using js) way to add messages to console
18th Jul 2019, 6:02 AM
KrOW
KrOW - avatar
0
Delete all the text under 2nd line
17th Jul 2019, 8:28 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
Cbr✔[ Not Active ] sorry, I don't know , I though that you wrote that nonsense text accidentally
17th Jul 2019, 8:33 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
But the function you've written is actually the only thinf for disabling console.log
17th Jul 2019, 8:36 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
Airree she's making fun of us
17th Jul 2019, 8:41 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
Please explain what's this text? dmdldlldle e e ldlekkdd doeoeowkkekee sbsbsbsbsbbsb bsbshhsjsjsjsjshshhsbss wlwkekekkew elwkwkkeeesbsbsbbs eoeikekekkeee e wbwjwjjehehehehsshee ekejejejeje;nwjnnwwnsnenbebwe console.log=funjsbsb sjwjew wction(){} ansjwn}
17th Jul 2019, 8:47 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
You're getting text error because you wrote incorrect code under 2nd line, so delete all code under 2nd line, write console.log("test"); and you won't see output in console line, after that comment 2nd line where tou disabled console log and run again and you'll see the output
17th Jul 2019, 8:50 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
Cbr✔[ Not Active ] if you read my text what I told you to do it is working, but if you don't do that it's not working because compiler can't recognises meaningless text as commands...
17th Jul 2019, 11:19 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
mark Airree as right answer, because she is right. If you write console.log=function(){}; console.log("test"); you don't see test but you can still see errors
17th Jul 2019, 4:47 PM
Stefanoo
Stefanoo - avatar
0
Stefanoo I wrote that for console.log("test") 🤣
17th Jul 2019, 4:49 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
you should remove all from second line to end, and then write a return into your function
17th Jul 2019, 7:56 PM
Павел Турченко
Павел Турченко - avatar
0
// disabling the console console.log (); function () {};
17th Jul 2019, 8:34 PM
Pinfiw32