Worked on creating break and continues in JavaScript