DEV Community

Discussion on: if javascript only needs the browser to compile why can't other languages do it

Collapse
 
saptakbhoumik profile image
SaptakBhoumik • Edited

Because js is a scripting language and also the official language for writing clint side code. This is why js is supported directly by browser but other languages are not. Also javascript is an interpreted language and not
compiled. It is true that most js engine provide jit but it not necessary+it is not aot compiled like c/c++ so you don't have to compile it before hand