reading-notes

Reading 8

  1. What is an expression in JavaScript?

    Some expressions change something (like assigning a value), and others calculate a value without changing anything (evaluate).

  2. Why would we use a loop in our code?

    Loops provide an efficient and structured way to perform repeated actions in our code.

  3. When does a for loop stop executing?

    A for loop executes repeatedly until its specified condition evaluates to false.

  4. How many times will a while loop execute?

    A while loop will continue to repeat until a specified condition assigned by the user evaluates to false.