Forum How do I...?

JavaScript REPL?

yyang
Hi, I find it easier to test the availability of a JavaScript feature or DOM interface, instead of looking into the documentation. That's especially true for dev versions. But it's still a pain to run Prince, check the output, modify the code, and run it again. Is it possible to expose a JavaScript REPL or something to speed up this workflow? Thanks!
mikeday
You can run "prince --shell", although this isn't interactive, it just reads all the JavaScript and executes it.
yyang
Thanks for your answer. As I understand it, this is good for testing the JavaScript language (without a DOM), right? Surely it's better than using an HTML wrapper. But still wish for something to help explore the DOM easily.
mikeday
Right, like the DOM inspector in web browsers? That would be very cool!
yyang
Yes, that'll save a huge amount of time.