No one likes to remove console.log from source after finished development but there’s a good solution for this. We have to set global variable and use custom wrapper function for console.log.
var debug = true,
From now we can use
_log function to log messages in console.
_log('Yup, this is good.');