-1

I am new to javascript and I recently learned that javascript was JIT compiled but if javascript is JIT compilable, can't we just compile a whole program to create an executable ?

race
  • 39
  • 5

1 Answers1

0

Deno CLI can compile javascript scripts to self-contained executables.

See this https://deno.com/manual@v1.33.2/tools/compiler

race
  • 39
  • 5
  • I wonder if there's really any translation to machine code, or if it just embeds a script into t text/data section of an executable and then feeds that into a JavaScript runtime. – starball May 05 '23 at 23:01