How to Debug JavaScript Code Effectively?

How to Debug JavaScript Code Effectively?