JavaScript can call your Ruby functions directly

Learn how to embed a JavaScript runtime in Ruby and execute both compiled frontend JavaScript and direct Ruby functions directly in that embedded JS runtime.