JavaScript Loops Arrays Strings homework