Open Cleop opened 5 years ago
A language is statically typed if the type of a variable is known at compile time. For some languages this means that you as the programmer must specify what type each variable is advantage here is that all kinds of checking can be done by the compiler, and therefore a lot of trivial bugs are caught at a very early stage
int a;
-a
can take only integer type values at runtimeA language is dynamically typed if the type is associated with run-time values, and not named variables/fields/etc. E.g. JavaScript
var a;
-a
can take any kind of values at runtime
To determine:
https://hackernoon.com/statically-typed-vs-dynamically-typed-languages-e4778e1ca55 https://www.technotification.com/2018/09/static-vs-dynamic-typed-programming-languages.html
*dynamically rather than dynamic
😊