Recent versions of IntelliJ have an "IDE scripting console" option under the tools menu. I've had a hard time finding blog posts about it. Some of these posts pointed out, and the gui proves this, that it has support for javascript. Could someone please point me to an example or blogpost how to use this feature (api docs) with javascript please?
