Homework of JavaScript2