Loops and functions are key concepts in JavaScript. A for loop is a control flow statement that lets you execute code repeatedly based on a condition. It has three parts: initialisation, condition, ...