As we saw in previous exercises, a function declaration binds a function to an identifier.
However, a function declaration does not ask the code inside the function body to run, it just declares the existence of the function. The code inside a function body runs, or executes, only when the function is called.
To call a function in your code, you type the function name followed by parentheses.
This function call executes the function body, or all of the statements between the curly braces in the function declaration.
We can call the same function as many times as needed.
Let’s practice calling functions in our code.
Смотрите видео Crushing Codecademy PRO WEB DEVELOPMENT career path Challenge - Calling a Function онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dusan Cajic 20 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 82 раз и оно понравилось 1 людям.