General look on language features
MDN is your friend:
https://developer.mozilla.org
var a = Number('5')var b = 5 + ''Falsy values:
truthy values:
anything except above
Do not check equality of objects, arrays etc. with ==/===
It doesn't consider their values only reference
function doSomething() {
// ...doing something
}var doSomething = function () {
// ...doing something
}(function IIFE(){
var a = 10;
console.log( a ); // 10
})();
var x = (function IIFE2(){
return 42;
})();
x; // 42