
Build a JavaScript Quiz App
You've learned arrays, conditionals, click events, and DOM updates as separate lessons. Now it's time to see them work together. A quiz app is the perfect…
Read tutorialControlling which instructions run and how often through conditions, boolean evaluation, iteration, and related flow patterns.
Tagged articles
9 articles in this tag.

You've learned arrays, conditionals, click events, and DOM updates as separate lessons. Now it's time to see them work together. A quiz app is the perfect…
Read tutorial
You've clicked buttons. You've added items to a list. Now it's time to make JavaScript think.
Read tutorial
You can loop over an array three different ways, and they all look nearly identical when you write them. So which one should you use?
Read tutorial
That is the normal first experience with recursion. The function calls itself, the answer appears, and somewhere in the middle your mental model goes dark.…
Read tutorial
A condition does not ask whether a value is true. It asks what that value becomes when JavaScript forces it into a yes-or-no decision.
Read tutorial
Five console.log statements will print five numbers. Fifty will print fifty. Five hundred will print five hundred—if you have the patience to write them…
Read tutorial
Every program you write has to react to the world around it. A login form needs to say "Welcome back" to one person and "Invalid password" to another. A…
Read tutorial
You can write an if/else statement. You know where the braces go and what console.log does. But when the condition gets even slightly tricky, you hesitate.…
Read tutorial
You learned to select one button and make it respond to a click. Then your page grew five buttons that all need the same behavior—and your trusty…
Read tutorial