Intro
In java bin directory, there is a javascript engine, jjs.
JJS
The usage is pretty simple: Just go to the JDK instalatoin and run JJS ~ this was removed on OpenJDK 11 actually:
#jdk1.8.0_191/bin/jjs
jjs> print(‘Hello World!’);
Hello World!