Practice It: JavaScript Loops and Conditionals
1h 57mIntermediate2022-11-09
Authors

J. David Eisenberg
Programmer and Instructor living in San Jose, California
Course details
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. David goes over working with conditionals and putting it all together. He steps through tasks like using the switch statement. David also dives into while and do-while loops, with challenges to help you practice. He explains the for loop, then introduces challenges like calculating minimum and maximum sales and more.
Skills covered
Ecma InternationalJavaScriptProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Practice, try, and check your JavaScript loops and conditionals
- 02 - Using GitHub Codespaces with this course
1. Assess Yourself
- 03 - Choose your adventure
2. Working with Conditionals
- 04 - If else decision-making
- 05 - Try it - High-deposit alerts
- 06 - Check it - High-deposit alerts
- 07 - Try it - Stay above zero
- 08 - Check it - Stay above zero
- 09 - Try it - Calculate discount offerings
- 10 - Check it - Calculate discount offerings
- 11 - Try it - Quadratic formula
- 12 - Check it - Quadratic formula
- 13 - Try it - Putting it all together
- 14 - Check it - Putting it all together
- 15 - The switch statement
- 16 - Try it - Calculate days in a month
- 17 - Check it - Calculate days in a month
3. Working with Loops
- 18 - Using while and do-while loops
- 19 - Try it - The Collatz conjecture
- 20 - Check it - The Collatz conjecture
- 21 - Try it - Playing dice
- 22 - Check it - Playing dice
- 23 - Try it - Calculate the break-even point of a loan
- 24 - Check it - Calculate the break-even point of a loan
- 25 - Try it - Simulate an express lane checkout
- 26 - Check it - Simulate an express lane checkout
- 27 - Using for loops
- 28 - Try it - Calculate minimum and maximum sales
- 29 - Check it - Calculate minimum and maximum sales
- 30 - Try it - Indexed for loops to convert binaries into decimals
- 31 - Check it - Indexed for loops to convert binaries into decimals
- 32 - Try it - Use for of to convert binary numbers to decimal
- 33 - Check it - Use for of to convert binary numbers into decimals
- 34 - Try it - Build an inverted triangle
- 35 - Check it - Build an inverted triangle
Conclusion
- 36 - Next steps
Related courses
- Practice: JavaScript Loops and Conditionals
- Computer Science Principles Lab: JavaScript
- Learning the JavaScript Language
- Web Components and Modularization: Practical Approaches
- Learning GWT
- Hands-On Introduction: Ruby on Rails
- JavaScript Practice: Scope and Closures
- JavaScript Practice: Object-Oriented Programming