A useful and fun thing about console.log is that you can add CSS styles to it. You can do it with the help of %c variable which gets replaced with the respective styles passed in as a parameter.
You can revert the style previously applied using another %c with an empty parameter passed in order.
You can be as creative as you like
You can also reuse styles using variables
This feature can really come in handy when you want to differentiate the console logs added at different parts of the code.
👹8 Ugly Truths I Found While Working as a Software Engineer👹
Stop only using console.log and use the built-in node debugger
Tom Holloway 🏕 -
How to setup HTTPS locally with create-react-app
Ganesh Agrawal -
🚀10 Trending projects on GitHub for web developers - 21st August 2020
Iain Freestone -