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.
+ 1
console.log only disables the logs. console.error is responsible for error messages, but I don't think you can disable that
+ 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
0
Delete all the text under 2nd line
0
Cbr✔[ Not Active ] sorry, I don't know , I though that you wrote that nonsense text accidentally
0
But the function you've written is actually the only thinf for disabling console.log
0
Airree she's making fun of us
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}
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
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...
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
0
Stefanoo I wrote that for console.log("test") 🤣
0
you should remove all from second line to end, and then write a return into your function
0
// disabling the console
console.log ();
function () {};