DEV Community

Discussion on: Modern JS Engine Workflow

Collapse
 
efpage profile image
Eckehard

I have been using compiled languages for a long time. Usually the compiler will find most of the trivial errors, even in parts of the code, that will never be executed.

Initially I thougt, the only reason for JS to be less critical, was the lack of strong types. But it seems most of the times, errors are only discoverd, if the code is executed. But that would mean, even symple typos can reside in the code for a long time, if a part of the code is not frequently used.

Iยดm not really sure if my impression is wrong?

Collapse
 
moreshwar profile image
Moreshwar Pidadi

Not necessarly you may see the err for same in browser or terminal once you complie the code.