Contentsquare Interview Question

Describe how you will troubleshoot a Javascript code?