Javascript inconsistency

F12 Chrome 0.01 + 0.06 0.06999999999999999 or 20.115*100 2011.4999999999998 function bla(e) { if(e) console.log(e); } You can call bla with multiple parameters, no error in javascript :). bla(1, 2, “vfd”); Or with no parameters at all bla();  

3 ways to define a JavaScript class

Source:¬†http://www.phpied.com/3-ways-to-define-a-javascript-class/   Introduction JavaScript is a very flexible object-oriented language when it comes to syntax. In this article you can find three ways of defining and instantiating an object. Even if you have already picked your favorite way of doing it, it helps to know some alternatives in order to read other people’s code. It’s … Read more3 ways to define a JavaScript class