I want to know if there are any down sides to leaving console.log
in my JavaScript functions as debug.
JavaScript:
var debugMSG = "DEBUG: "
var debugFStart = debugMSG + "Starting Function. Name; "
var debugFFinish = debugMSG + "Ending Function. Name; "
function myFunction1() {
console.log(debugFStart + "myFunction1()")
alert("Function 1 is being used!")
console.log(debugFFinish + "myFunction1()")
}
function myFunction2() {
console.log(debugFStart + "myFunction2()")
alert("Function 2 is being used!")
console.log(debugFFinish + "myFunction2()")
}
Would it be bad in any way to leave this code inside of my Websites Files when i upload it?