Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

Programming 1 (BI)
  ▸ exercises
  ▸ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C#
* D lang.
* Java
* Nim
* Nim2
  + exercises
* XC=BASIC
* old
  ✦C++, ✦Clojure, ✦Scala


[ edit | logout ]
[ sandbox | passwd ]

Compile to JavaScript

$ nim c prg.nim

𝥶Here we use the C backend. The code is compiled to C first, and then that C code is compiled by GCC (or Clang, etc.).

However, Nim also has a JavaScript backend. You can compile your code to JavaScript. However, if you use the JS backend, then you can use just a subset of the standard library. More info here.

$ nim js prg.nim             # debug version

$ nim js -d:release prg.nim  # release version

𝥶If you build something for the browser.

$ nim js -d:nodejs prg.nim             # debug version

$ nim js -d:nodejs -d:release prg.nim  # release version

𝥶If you want to execute the resulting JavaScript program with node.js:

$ node prg.js
Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 29, 22:47