FunctionalJS: 1-6