https://nodejs.org/api/repl.html
Generally you have a client run their own Javascript that speaks to your backend but does not run on your hardware nor within your virtual ecosystem.