static typed languages are those which the types are know at compile time
Right. If you open source code of almost any parser you would see that parser knows type of the value at the moment of parsing ("afsd" - string, 123 - number, etc.). By this definition JS is statically typed.
Dynamic typed languages means that types are determined during runtime
If you would use reflection in Java you would be able to determine type at runtime. So Java is dynamically typed.
Weak vs strong
Not CS terms.
Null isn't really a type
Null is a value. "Nullable" type represents set of one value.
typeNullableNumber=number|null
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Right. If you open source code of almost any parser you would see that parser knows type of the value at the moment of parsing ("afsd" - string, 123 - number, etc.). By this definition JS is statically typed.
If you would use reflection in Java you would be able to determine type at runtime. So Java is dynamically typed.
Not CS terms.
Null is a value. "Nullable" type represents set of one value.