Emscripten provides several techniques for integrating JavaScript with your C/C++ code. The techniques available differ in implementation and complexity, and some only apply to specific execution environments (for example, the browser). Deciding which one to use is contingent on your specific use case. We'll focus on the emscripten_run_script() function and inlining JavaScript with EM_* wrappers. The content in the following sections was taken from the Interacting with Code section of Emscripten's site, which can be viewed at https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#interacting-with-code.