You don't need IDE, all you need is REPL.
BASIC offered REPL with primitive line editor.
You can use JS REPL:
jconsole (based on JavaScript Shell 1.4) Features: autocompletion of property names with Tab, multiline input with Shift+Enter, input history with (Ctrl+) Up/Down, Math, help Values and functions: ans, print(string), props(object), blink(node), clear(), load(scriptURL), scope(object)
5 * 5
25
f = function(X) { return XX; }
function (X) { return X X; }
f(5)
25
print("Hello, World!")
Hello, World!