Better usage of console.log
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.
1 | var debug = true, |
From now we can use _log
function to log messages in console.
1 | _log('Yup, this is good.'); |