program.js (170B)
1 var library = require("./build/library.js"); 2 3 library.onRuntimeInitialized = () => { 4 const result = library._multiply(6, 7); 5 console.log("The answer is " + result); 6 };
![]() | emscripten-tutorialHow to build an increasingly complex C/C++ codebase to WebAssembly |
git clone https://git.tronto.net/emscripten-tutorial | |
Download | Log | Files | Refs | README |
program.js (170B)
1 var library = require("./build/library.js"); 2 3 library.onRuntimeInitialized = () => { 4 const result = library._multiply(6, 7); 5 console.log("The answer is " + result); 6 };