emscripten-tutorial

How to build an increasingly complex C/C++ codebase to WebAssembly
git clone https://git.tronto.net/emscripten-tutorial
Download | Log | Files | Refs | README

program.mjs (183B)


      1 import Primes from "./build/primes.mjs"
      2 
      3 var primes = await Primes();
      4 
      5 const count = primes._primes_in_range(1, 100);
      6 console.log("There are " + count + " primes between 1 and 100");