Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 92 - 2632_CodeMind
P. 92

    Let’s CatCh uP

                       1.  What is the main purpose of using functions?

                         _______________________________________________________________________________

                         _______________________________________________________________________________

                       2.   What is the difference between arguments and parameters?

                         _______________________________________________________________________________

                         _______________________________________________________________________________

                               Let’s BaCk-uP

                            Loops are fundamental programming constructs that allow you to repeat a set of instructions
                          multiple times.
                           The repeat loop executes a block of code a specified number of times.

                           The forever loop is a special loop that runs continuously throughout the entire project.
                            The for loop is a counting loop, which is useful for situations where you need a counter variable that
                          can be used within the loop.
                           The while loop runs if a specified condition is true.
                            Jump statements in programming are used to change the flow of control by skipping, starting again
                          or exiting certain parts of the code.
                            The break statement changes the normal flow of execution of the statement by exiting the existing
                          loop and continuing the flow of the statement after that loop.
                            The continue statement forces the next iteration of the loop to execute and skips the line of code
                          within the loop.
                           Functions are reusable blocks of code that perform specific tasks.

                                                                                           Advanced MakeCode Arcade    91

| 87 88 89 90 91 92 93 94 95 96 97 |