DEV Community

Cover image for đź’ĄWhat is loop?
Ayobami Ogundiran
Ayobami Ogundiran

Posted on

2 1

đź’ĄWhat is loop?

Do you really understand loop?

We all use for, do while, while and other forms of loop, but do we really understand them?

What is loop?

Loop is a structure, series, or process, the end of which is connected to the beginning.

This means that when a loop comes to an end, it goes back to the beginning. In short, it repeats a process over and over again based on given conditions.

Examples of loop in the real world.

  1. Day and Night
  2. Living
  3. Sleeping and Waking
  4. Eating
  5. Sex

Major forms of loop

A loop can be finite if it ends without external interruption, that is, it is self-terminable or has known end.

E.g Living as a human being.

A loop can be infinite if it ends only with external interruption. It is not self-terminable.

E.g Human Existence.

Things that use loop are all around. We all loop things everyday. As you put spoon in your mouth repetitively, you make use of loop.

What are the things that use loop around you?

follow me on twitter: codingnninja;

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay