Functions

It's time for the next dose of knowledge. We present the function, or block of code used to perform a specific task. What is important, it should be called. Look at the example to understand what it means. Let's start with the syntax of a function.

Look at the example:

function name(parameter) {
    // code to perform
}

Discover the features of functions: