examples: intro a README file to emscripten examples
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 14 Jun 2014 11:28:23 +0000 (07:28 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 16 Jun 2014 16:24:23 +0000 (12:24 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/emscripten/README.md [new file with mode: 0644]

diff --git a/examples/emscripten/README.md b/examples/emscripten/README.md
new file mode 100644 (file)
index 0000000..0d84b15
--- /dev/null
@@ -0,0 +1,9 @@
+# Hello world
+
+Minimal example using the standard Nit hello world program. The Nit code will be evaluated and executed once as soon as it is loaded. Standard output is redirected to the `console` element.
+
+# Fibonacci
+
+The Nit program is executed only when an input is supplied. The input is passed as the main arguments.
+
+This is not ideal, the whole Nit program is executed at each call.