Modern JavaScript development means modular files, component-based UI, safer variable handling with let and const, arrow functions, destructuring, spread syntax, template literals, optional chaining, ...
In order to compile a program into native OS executable. The compiler needs information on the types. E.g. we need the type of variable, so that we can allocate that amount of memory. We know in ...