• Skip to main content
  • Skip to primary sidebar

Founder at work

Master the skills to create and launch your next SaaS company

  • About Me
  • Reviews
  • Resources
  • Community
  • Contact
  • Lessons
  • Series
  • Search
  • Login

Introduction to loops

August 11, 2016 by Rick Hernandez Leave a Comment

Loops

Loops represent the concept of repeating a process over and over again. Constructing loops are one of the core parts of a program. A loop’s condition must evaluate to true or false. If the loop’s condition is true, the loop will continue to execute until it becomes false. If a loop never evaluates to false, it will turn into a infinite loop that will continue forever. Since loops can fall into this problem of looping forever, there are certain keywords that can help you decide to keep looping or to stop.

Break
A break can be used to terminate a loop.

Continue
A continue is used to keep a loop iterating.

Computers love to be in loops, and later in your studies, you will find out that loops compose a large part of all programs. Start getting comfortable with the idea of a loop.

Loop

Rick Hernandez

I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Filed Under: JavaScript, JSecademy, Programming, Programming Fundamentals

Primary Sidebar

Learn How To Take Your Idea And Convert It Into An App From Scratch Even If You Have Never Written A Single Line Of Code.

  • How to Find Your Next Great App Idea
  • The Secret To Getting PAID To Build Your Own App
  • How To Create Your App (SaaS, Mobile, VR, AR, Game)
  • How To Monetize Your Apps
Learn More
4.82 Ratings

Copyright © 2025 · JSecademy Blog Theme on Genesis Framework · WordPress · Log in