HTML and CSS Reference
In-Depth Information
Even using the “+” operator on the same data types can produce meaningless
[] + [] = empty string
{} + {} = NaN
It is hard to make sense of any of these results.
In addition, the “-“ operator should only be used on numbers:
“a” + 1 = “a1”
“a” - 1 = NaN
There are many arguments for and against dynamically typed languages. This topic will not
address these arguments, but it is safe to conclude that dynamic typing has advantages, but
those come at the risks of run-time bugs.
Search WWH ::

Custom Search