If only it were that simple. It also has "you create thing with `var` and sometimes with `=`", plus it does not have block scope:
if( true) { var x = 1; } // x == 1 here.
If only it were that simple. It also has "you create thing with `var` and sometimes with `=`", plus it does not have block scope: