Created functions in JavaScript
Used break and continue in JavaScript