Type System Compiling Run nim r main.nim. This will create out.js, which you can then run with node out.js.