reading-notes

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

What is control flow?

It’s how a program decides which statements to execute, involving decisions, loops, and function calls.

What is a JavaScript function?

A reusable code block in JavaScript.

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

o invoke or call a function means to trigger the execution of the code within that function. When you invoke a function, you essentially instruct the program to carry out the actions defined within the function. You do this by using the function’s name followed by parentheses (). If the function expects input, you provide it as arguments within these parentheses. Calling a function is a fundamental mechanism for making your code dynamic and for reusing code logic in different parts of your program.

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

They declare the function’s input (parameters).

Information gathered using ChatGPT