0
Is JS compiled or interpreted? From Kyle's book, you don't know js, he said it's compiled but Google search says otherwise
Compiled or interpreted
4 Respostas
+ 1
visph Reference
Book title : You don't know Js, scope and closures by Kyle Simpson
Page : 15
Heading : compiler theory
Quote :It may be self-evident, or it may be surprising, depending on your level of interaction with various languages, but despite the fact that JavaScript falls under the general category of "dynamic" or “interpreted" languages, is in fact a compiled language.
+ 4
first edition of books?
in second edition he's more accurate:
"(...) what the engine is doing in processing JS programs is much more ALIKE compilation than not.
Classifying JS as a compiled language is not concerned with the distribution model for its binary (or byte-code) executable representations, but rather in keeping a clear distinction in our minds about the phase where JS code is processed and analyzed; this phase observably and indisputedly happens BEFORE the code starts to be executed."
https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/scope-closures/ch1.md
so, js is an interpreted language alike a compiled one: in fact js is in between both ^^
+ 1
where do kyle say that js is compiled in "you don't know js"?
please provide reference and quote ;P
0
visph okay. Thanks a lot 😇