We add console.log all over our code during debugging and then once we are done, we have to manually remove those console.log statements. Here is a simple trick which can save us time // Define a no-operation lambda const nop = () => {}; // Now defi...

Markdown supported · ⌘↵ to post
Deven Mhatre
Software engineer
But the debug statements will still stay right? Which is kind of unnecessary once your code is finalized? Like for me personally, I am ok to keep them for future development help. But will be your call? will you remove them once you are done?