Debugging JavaScript

How do we debug JavaScript code?

math div

modifyMe div