JavaScript Loops Homework Tasks