Console.log
console.log = function() {}
var a = 5;
console.log(a)
Now you will not see any console.
alert
alert = function() {}
var a = 5;
alert(a)
Now you will not see any alert
Console.log
console.log = function() {}
var a = 5;
console.log(a)
Now you will not see any console.
alert
alert = function() {}
var a = 5;
alert(a)
Now you will not see any alert