Codility tasks solutions on JavaScript: absDistinct ( A ), hex_bitcount ( S ), nesting ( S ) and treeHeight ( T ).