Back to Course

Introduction to JavaScript

0% Complete
0/0 Steps
  1. JavaScript: Basics
    9Topics
    |
    10 Quizzes
  2. JavaScript: Variables
    9Topics
    |
    10 Quizzes
  3. JavaScript: Conditional Statements
    10Topics
    |
    11 Quizzes
  4. JavaScript: Functions
    10Topics
    |
    11 Quizzes
  5. JavaScript: Scope
    6Topics
    |
    7 Quizzes
  6. JavaScript: Arrays
    11Topics
    |
    12 Quizzes
  7. JavaScript: Loops
    8Topics
    |
    9 Quizzes
  8. JavaScript: High Order Functions
    3Topics
    |
    4 Quizzes
  9. JavaScript: Iterators
    6Topics
    |
    6 Quizzes
Lesson 7, Topic 1
In Progress

JavaScript: Introduction to Loops

Yasin Cakal 18 Nov 2021
Lesson Progress
0% Complete

A loop is a programming construct that repeats a set of instructions until it reaches a specified condition known as a stopping condition. You’ll find that as a programmer, you rely on loops all the time! When talking about loops, you’ll hear the term iterate, which simply means “to repeat.”

We often bundle a task in a function when we need to reuse it in our code. Similarly, we write a loop when we see that a process must be repeated multiple times in a row. Loops enable us to write efficient code that automates processes, resulting in scalable and manageable programs.

So, to summarise the introduction to loops, loops iterate or repeat an action until a certain condition is met. The loop ends when the condition is met, and the computer moves on to the next section of the program.

Responses

Leave a Reply

%d bloggers like this: