reading-notes

Reading 7

  1. What is control flow?

    Control flow refers to the sequence in which a computer executes statements in a script, typically from the first line of code to the last.

  2. What is a JavaScript function?

    Functions are reusable blocks of code that perform specific tasks and run when they are called or invoked. A variable can refer to a function and is an object in JavaScript.

  3. What does it mean to invoke - or call - a function?

    A function runs when it’s “invoked or called” from JavaScript, triggered by an event, or executed automatically.

  4. What are the parenthesis () for when you define a function?

    The parentheses contain and list the optional parameters for a function name.