aboutsummaryrefslogtreecommitdiff
path: root/03_threads/program.mjs
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-10 12:02:10 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-10 12:02:10 +0200
commit4ea98362c39d63bbfaef28aa25a1e630e01c5611 (patch)
tree58325878046ec59b22cc0012497f220cc04762eb /03_threads/program.mjs
parent18132bf9c9755a7de41a8c89dc6b02409a629cd5 (diff)
downloademscripten-tutorial-master.tar.gz
emscripten-tutorial-master.zip
Added native exampleHEADmaster
Diffstat (limited to '03_threads/program.mjs')
-rw-r--r--03_threads/program.mjs6
1 files changed, 4 insertions, 2 deletions
diff --git a/03_threads/program.mjs b/03_threads/program.mjs
index db0a2c6..3bdb4ea 100644
--- a/03_threads/program.mjs
+++ b/03_threads/program.mjs
@@ -2,5 +2,7 @@ import Primes from "./build/primes.mjs"
2 2
3var primes = await Primes(); 3var primes = await Primes();
4 4
5const count = primes._primes_in_range(1, 100); 5var low = 1;
6console.log("There are " + count + " primes between 1 and 100"); 6var high = 10000000;
7const count = primes._primes_in_range(low, high);
8console.log("There are " + count + " primes between " + low + " and " + high);

Generated with cgit - Back to sebastiano.tronto.net