What you're referring to here is an interpreted language vs a compiled language. Both python and js are interpreted languages, meaning at run time the code is run through an interpreter which compiles it to machine code.
Compiled language do that at build time, or compile time, meaning when they run they should be more efficient as there is less work to do.
This is a massive over simplification and I'm sure someone will be able to build on this or correct me where I'm wrong.
View all comments
Show parent comment
15
u/visualdescript Jun 25 '18
What you're referring to here is an interpreted language vs a compiled language. Both python and js are interpreted languages, meaning at run time the code is run through an interpreter which compiles it to machine code.
Compiled language do that at build time, or compile time, meaning when they run they should be more efficient as there is less work to do.
This is a massive over simplification and I'm sure someone will be able to build on this or correct me where I'm wrong.