Summary
In this chapter, we went through the various polyglot interoperability and embedding features of GraalVM/Truffle for JavaScript and Node.js in detail. We explored all the key concepts with some real code examples, to gain a clear understanding of how JavaScript and Node.js can call, pass data, and interoperate with other language code. This is one of the salient features of GraalVM.
The examples given in this chapter will help you to build and run polyglot applications that are written using the Java and JavaScript languages on the same runtime.
In the next chapter, we will continue to explore R, Python, and the latest Java on Truffle.