Skip to content
</>Noob2Dev
RoadmapInterview PrepPlaygroundPricing
Log inStart free
โ† Programming Foundations with JavaScript
  1. 1How Code Runs & Your First Program
  2. 2Printing Output & Writing Comments
  3. 3Numbers & Math
  4. 4Strings: Working with Text๐Ÿ”’
  5. 5Variables & Data Types๐Ÿ”’
  6. 6Types: Numbers vs Text๐Ÿ”’
  7. 7True, False & Comparisons๐Ÿ”’
  8. 8Making Decisions with if / else๐Ÿ”’
  9. 9And, Or, Not: Combining Conditions๐Ÿ”’
  10. 10Repeating with while Loops๐Ÿ”’
  11. 11for Loops (and Watching One Run)๐Ÿ”’
  12. 12Practice: Conditions + Loops๐Ÿ”’
  13. 13Functions๐Ÿ”’
  14. 14Parameters & Return Values๐Ÿ”’
  15. 15Scope: Where Variables Live๐Ÿ”’
  16. 16Arrays: Lists of Things๐Ÿ”’
  17. 17Looping Over Arrays๐Ÿ”’
  18. 18Objects: Grouping Related Data๐Ÿ”’
  19. 19Debugging Like a Detective๐Ÿ”’
  20. 20Mini Project: Bill Splitter๐Ÿ”’
  21. 21Mini Project: Class Gradebook๐Ÿ”’
  22. 22Arrays, Objects & map/filter/reduce๐Ÿ”’

Lesson 7 of 22 ยท 7 min ยท 2 hands-on steps

True, False & Comparisons

Ask the computer yes/no questions. The foundation of every decision your code makes.

๐Ÿ”“

You're on a roll. Keep going!

Unlock every lesson, exercise and interview question, plus the AI tutor. From $9.99/month, cancel anytime, with a 14-day money-back guarantee.

Unlock everythingI'm already a member
โ† Types: Numbers vs TextMaking Decisions with if / else โ†’
</>Noob2Dev

From total beginner to job-ready developer.

RoadmapInterview PrepPlaygroundPricingContact
ยฉ 2026 Noob2Dev