Compared to other languages and environments, debugging JavaScript can be difficult if you don't have a good idea of what's going on behind the scenes in specific browser versions, the DOM and JavaScript VM. Throw callbacks, Promises, etc into the mix and things get confusing pretty fast.
Comparatively, other languages, like Python, will throw sane exceptions and a meaningful stack trace when something goes wrong.