DEV Community

Discussion on: Is Javascript a compiled language?

Collapse
 
genta profile image
Fabio Russo

Thanks for replying mate.

What about that javascript "compile" phase? Just an optimised string?
Can you explain the optimization steps for me?

Collapse
 
sauloxd profile image
Saulo Furuta

I guess the optimization he is mentioning is the minify/uglify of code to reduce the user network cost to "execute"/"run" our client-side web application. In the network point of view, they are just it, a string of chars that will be evaluated in the browser JS engine.

Although I don't actually agree in the usage of "compilation" in this minify/uglify/transpile scenario, because compilation heavily implies in optimization code changes to improve the program runtime, and the steps mentioned only optimizes the network cost/developer UX.