Strongly typed vs loosely types
Strongly typed vs loosely typed languages
What is it and what’s the difference
Some programming languages have more checks at the compile time (while building the code), and have checks on method calling, data types, return types and so on
In short you cannot ‘loosely’ use variable types and change them on the go
Examples of such languages would be Java and C#, each variable must be declared with a specific datatype
The opposite off course is loosely typed, where there are no such checks on the compile time
A major reason for that is some languages don’t have to be ‘compiled’ to build code
Such an example would be JavaScript, these languages are called ‘interpreted’ languages
In JavaScript’s example, it’s code is mostly used in browsers, and that’s one of the reasons why some websites look different
They can ‘interpret’ the same JavaScript code differently.
So, mostly ‘compile time’ languages (e.g. Java, C#..) would be ‘Strongly typed’, and ‘interpreted’ languages (e.g. JavaScript) would be ‘loosely’ typed