reading-notes

Answering questions

  1. What is control flow? It determines how a program’s logic branches and loops, guiding the flow of execution through different parts of the code.

  2. What is a JavaScript function? In JavaScript, a function is a reusable block of code that performs a specific task or set of tasks. Functions encapsulate a series of statements into a single unit, making your code more organized, modular, and easier to maintain.

  3. What does it mean to invoke - or call - a function? To invoke or call a JavaScript function means to execute the code within the function. You do this by using the function’s name followed by parentheses.

  4. What are the parenthesis () for when you define a function? In JavaScript, when you define a function, the parentheses are used to specify the function’s parameters.