Posted on

Some Language oddities

Let’s start with some the classics:

Our ever “friend” JavaScript
console.log("b" + "a" + +"a" + "a") ;
“baNaNa”? Really?

console.log( [] !== [] ) ;
.. evaluates to “true”? Really?? JS?
an empty array is absolutely truly different from, in values, shape, and form, from…  an empty array?

Then, Typescript?
function (a: any, b: any) any

Typescript: let’s enforce types on data and vars.
Dev: Nope!