Loops and Terminal Input

Martin Breuss 16 Lessons 4h 43m Updated basics js node

A program that does one thing and stops can only take you so far. In this course, you’ll teach your code to repeat: count, add up totals, look through text character by character, and keep asking the player until they win or quit.

In this course, you’ll learn how to:

  • Repeat code with while and do...while, and stop a loop that never ends
  • Count with for loops, add up totals and step through a string’s characters
  • Leave a loop early with break, and skip the rest of a pass with continue
  • Plan a program’s inputs, steps and output before you write it
  • Ask questions in the terminal with Node’s readline recipe and check the answers

Along the way, you’ll practice in exercises with tests, then build a secret-code guessing game that runs in your terminal and explain it to the mentor.

What’s Included:

  • 16 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 5 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Martin Breuss

Martin is Head of Content Strategy at RealJS. He came to programming from biology and has been teaching programming for more than ten years, as a coding mentor, code reviewer, curriculum developer, bootcamp instructor, and instructional designer.

» More about Martin

← Browse All Courses