aboutsummaryrefslogtreecommitdiff
path: root/03_threads
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-05 10:13:28 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-05 10:13:28 +0200
commit73efecca42dbc44200e797e02f8c1e24fcff26ef (patch)
tree46969fed9d5c09a4164257dace56a71cad9092ab /03_threads
parent2a8e7aeeef99161b6f0378ac14e297c23ca6227b (diff)
downloademscripten-tutorial-73efecca42dbc44200e797e02f8c1e24fcff26ef.tar.gz
emscripten-tutorial-73efecca42dbc44200e797e02f8c1e24fcff26ef.zip
Added two more examples
Diffstat (limited to '')
-rw-r--r--03_threads/index.html2
-rw-r--r--03_threads/program.mjs2
2 files changed, 2 insertions, 2 deletions
diff --git a/03_threads/index.html b/03_threads/index.html
index 29cfaf8..7a1fba7 100644
--- a/03_threads/index.html
+++ b/03_threads/index.html
@@ -3,7 +3,7 @@
3<head> 3<head>
4 <meta charset="utf-8" /> 4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width" /> 5 <meta name="viewport" content="width=device-width" />
6 <title>Multiply two numbers</title> 6 <title>Primes in a range</title>
7 <script src="./script.mjs" type="module" defer></script> 7 <script src="./script.mjs" type="module" defer></script>
8</head> 8</head>
9 9
diff --git a/03_threads/program.mjs b/03_threads/program.mjs
index a5a89ce..db0a2c6 100644
--- a/03_threads/program.mjs
+++ b/03_threads/program.mjs
@@ -3,4 +3,4 @@ import Primes from "./build/primes.mjs"
3var primes = await Primes(); 3var primes = await Primes();
4 4
5const count = primes._primes_in_range(1, 100); 5const count = primes._primes_in_range(1, 100);
6console.log("There are " + count + " primes betwees 1 and 100"); 6console.log("There are " + count + " primes between 1 and 100");

Generated with cgit - Back to sebastiano.tronto.net