How To Understand The Diffence Between Statically - Dynamically - Strongly - Weakly Typed Languages

How To Understand The Diffence Between Statically - Dynamically - Strongly - Weakly Typed Languages

First of all, what are all these words - Statically - Dynamically - Strongly - Weakly Typed Languages?
This is how you can classify programming languages:

1 Like

This is one of the things JavaScript is frowned upon for. Being weakly as well as dynamically typed and pulling off things like let x=“2”,y=3; console.log(x+y);console.log(x-y);
//prints 23 and -1
This implicit type juggling can cause really hard to find bugs.
IMO, Python gets these kind of things right and then are C++ and C which pretty much disallow the programmer from performing nonsensical operations but their syntax leads to writing more boilerplate even for simple things.

There’s also the issue of the everything is a reference variable in JS, Python, Java but variables actually “CONTAIN” their values in C,C++ which can be a bit counter intuitive to many beginners.

1 Like