TechEducationClone

Programming with JS

Link to live page where Functions are being used HERE

Q&A

  1. What is control flow?

    Control flow in JavaScript is how your computer runs code from top to bottom. It starts from the first line and ends at the last line, unless it hits any statement that changes the control flow of the program such as loops, conditionals, or functions.

  2. What is a JavaScript function?

    A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when “something” invokes it (calls it).

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

    The code inside a JavaScript function will execute when “something” invokes it. Without a function being defined it will not be exicuted.

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

    () = pramaters you can have a number of them in there that are seaperated by ,