From: Alexis Laferrière Date: Sat, 14 Jun 2014 11:28:23 +0000 (-0400) Subject: examples: intro a README file to emscripten examples X-Git-Tag: v0.6.6~28^2~2 X-Git-Url: http://nitlanguage.org examples: intro a README file to emscripten examples Signed-off-by: Alexis Laferrière --- diff --git a/examples/emscripten/README.md b/examples/emscripten/README.md new file mode 100644 index 0000000..0d84b15 --- /dev/null +++ b/examples/emscripten/README.md @@ -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.