functions
4 01 2016
Maks Nemisj | javascript |
I still have to used to this new arrow functions and implicit return statement. If you’re unfamiliar with them, here is the doc – https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions Look at this two ‘almost’ identical parts of code and think what is the difference between them? code-one.js and this one code-two.js They look the same, except that one will […]
ecma2015, functions
7 10 2010
Maks Nemisj | javascript |
Yesterday I came across two interesting JavaScript behaviors. They gave me different results based on the browser. The first one was only reproducible in Internet Explorer (IE) and the second one only in Firefox. First, lets see the IE code: var get = function() { return function bla() { alert( bla.property ); } } var […]
declaration, functions, javascript