This is one of my favorite tools for debugging and testing things quickly.
Stephen Grider RunJS - a desktop app that serves as a JavaScript scratchpad. Its similar to Swift playgrounds - every line of JS code will be evaluated separately, with output printed on the right.