Javascript's exercise about arrays