DEV Community

Discussion on: Is Javascript a compiled language?

Collapse
 
val_baca profile image
Valentin Baca

Read past the first sentence of wikipedia:

The name compiler is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language, object code, or machine code) to create an executable program.

You're using the broader definition (what you quoted) vs the colloquial definition (what I've quoted).

Can normal javascript produce a stand-alone executable? Can javascript be run without an interpreter?

That said, there are efforts to actually make js able to be compiled: hackernoon.com/javascript-compilat...

Collapse
 
genta profile image
Fabio Russo • Edited

I wrote that JS is not “compiled” as many other languages but It has some behavior of compiled language before the runtime.
So, I think that we can look at It as a compiled language...

But that’s why this is a #discussion