A WASM function can call another function directly by index/name, call imported JS callbacks, or use `call_indirect` through a table for dynamic dispatch.

  • JavaScript calls exported functions as normal JS functions.
  • Imported functions must match expected signatures.
  • Tables provide virtual-function-table-style dispatch while keeping validation and type checks.
  • Globals can parameterize dispatch or runtime configuration.