Sage 9 Javascript logging

I cannot work out how to debug or log my javascript using Sage 9. I know I’m thinking about the whole situation wrong, because an hour of googling hasn’t shown any leads.

Previously I used console.log() to debug. With Sage 9 this throws Jshint warnings, and I can’t seem to actually output anything to the console. What is the proper way to log output from my scripts?

Thank you for any help with this very dumb question!

My mistake, Safari was throwing a JS error which wasn’t caught by JShint. The logs come through fine now that that’s been fixed.