Can we run java script code in our .rb file

is is there any way to run a java script code inside a ruby code?
Please let me know.

I don’t think it’s possible natively, like C Ruby extension. I could be wrong though. But you can use IO.popen() to launch your code at the expense of creating new process, which is very slow.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs