Showing posts from January, 2014. Show all posts


Not that long ago I was helping one of my colleagues to investigate an issue where a method was always returning undefined value even though a literal object was used as a return value. function calculateHash (item) { var hashValue; // item hash value calculation return { hash: hashValue } } calculateHash(/* any item */) // - …