Praticing concepts from Functional JavaScript book