var x2 = ‘This is a beautiful world’;
var x1 = 5;
let y = ‘It is a beautiful sunny day’;
Whereas in a strongly typed language like C or Java, you have to clearly define your datatype of variable.
int x1 = 2;
String x2 = “It is a beautiful day”;
Assigning one type of datatype to another creates later in the program is not a clean and efficient way to write your programs and will lead to ‘Warnings’ while executing the programs in weakly (or loosely) typed languages. In strongly typed languages, this will lead to errors in the program while compilation.
So children, whenever your learning a new programming language, it is important to understand if it is a weakly typed programming language or a strongly typed program language. So, google and find out if the following languages are strongly typed or weakly typed: Perl, PHP, Python, C#, and Typescript.
Hope this is useful, thank you.