Practice: JavaScript Loops and Conditionals

Practice: JavaScript Loops and Conditionals

1h 42mIntermediate2022-03-29

Authors

J. David Eisenberg

J. David Eisenberg

Programmer and Instructor living in San Jose, California

Course details

Every JavaScript program you write will eventually have to make decisions and complete repetitive tasks. How good are you with conditionals and loops? How do you get better? Practice, practice, practice! But where to find it, and how to structure it? In this course, David Eisenberg gives you the chance to test your skills, find your focus, and work through problems that are just challenging enough to help you achieve the next level of JavaScript development. The course starts with an assessment quiz, so you can determine how much you already know about each topic, and whether you need to review or dive right into the challenges.

Skills covered

Ecma InternationalJavaScriptProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)

Concepts

Introduction

  • Assess and practice your JavaScript loops and conditionals
  • System setup

Assess Yourself

  • Choose your adventure

Working with Conditionals

  • If and else decision-making
  • Challenge - High-deposit alerts
  • Solution - High-deposit alerts
  • Challenge - Stay above zero
  • Solution - Stay above zero
  • Challenge - Calculate discount offerings
  • Solution - Calculate discount offerings
  • Challenge - Quadratic formula
  • Solution - Quadratic formula
  • Challenge - Putting it all together
  • Solution - Putting it all together
  • Switch
  • Challenge - Calculate days in a month
  • Solution - Calculate days in a month

Working with Loops

  • While structure
  • Challenge - The Collatz conjecture
  • Solution - The Collatz conjecture
  • Challenge - Playing dice
  • Solution - Playing dice
  • Challenge - Calculate the break-even point of a loan
  • Solution - Calculate the break-even point of a loan
  • Challenge - Simulate an express lane checkout
  • Solution - Simulate an express lane checkout
  • For loops
  • Challenge - Calculate minimum and maximum sales
  • Solution - Calculate minimum and maximum sales
  • Challenge - Indexed for loops to convert binary to decimal
  • Solution - Indexed for loops to convert binary to decimal
  • Challenge - Use for-of to convert binary numbers to decimal
  • Solution - Use for-of to convert binary numbers to decimal
  • Challenge - Build an inverted triangle
  • Solution - Build an inverted triangle

Conclusion

  • Next steps
40,000 Toman