JavaScript Tutorial
Loops and Iteration
Repeat code with for, while, and array iteration methods.
Loops let you run the same code multiple times.
Iteration is commonly used for lists, tables, search results, and repeated UI content.
javascript
const topics = ["HTML", "CSS", "JavaScript"];
for (const topic of topics) {
console.log(topic);
}