- What are the names of the two functions available on the
Module
object that you use to interact with the compiled code from the browser? - What do you need to wrap your C++ code in to ensure the function names don't get mangled?
- What's the difference between
EM_ASM()
andEM_JS()
? - Which is more performant,
emscripten_run_script()
orEM_ASM()
/EM_JS()
? - What do you need to include in the line above your function if you want to use it outside of your C/C++ code (hint: it starts with
EMSCRIPTEN
)? - Where can you define a function that needs to be passed into the
importObj.env
object when instantiating a module? - What additional APIs does Emscripten provide?
- What is the purpose of source maps?