diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-04 11:55:34 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-04 11:55:34 +0200 |
| commit | 2a8e7aeeef99161b6f0378ac14e297c23ca6227b (patch) | |
| tree | d3ab195eabf4d06cad8b305756e14d4b138eae63 /03_threads/program.mjs | |
| download | emscripten-tutorial-2a8e7aeeef99161b6f0378ac14e297c23ca6227b.tar.gz emscripten-tutorial-2a8e7aeeef99161b6f0378ac14e297c23ca6227b.zip | |
First 4 examples
Diffstat (limited to '03_threads/program.mjs')
| -rw-r--r-- | 03_threads/program.mjs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/03_threads/program.mjs b/03_threads/program.mjs new file mode 100644 index 0000000..a5a89ce --- /dev/null +++ b/03_threads/program.mjs | |||
| @@ -0,0 +1,6 @@ | |||
| 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 betwees 1 and 100"); | ||
