JS interpreter that runs in JS

Something I could feed JS into and it spits out the result... As a secure sandbox that can be reset.

Use acorn?

https://blog.bitsrc.io/build-a-js-interpreter-in-javascript-using-acorn-as-a-parser-5487bb53390c

This is a working example: https://github.com/NeilFraser/JS-Interpreter great alternative to using eval for my js 101 course...