hide console and alert in javascript

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

Leave a Reply

Your email address will not be published. Required fields are marked *