reading-notes

Think you might be in the wrong place? Go home!

What is an expression in JavaScript?

An expression is a combination of values, variables, operators, and functions that evaluates to a single value.

Why would we use a loop in our code?

Loops automate repetitive tasks and process data collections, making code more concise and maintainable.

When does a for loop stop executing?

A for loop stops when the specified condition in the loop header becomes false.

How many times will a while loop execute?

A while loop executes as long as its specified condition remains true, so it varies based on the condition.

Information gathered using ChatGPT