What is a function in Javascript explained for beginners

preview_player
Показать описание
Today I'll show you what is a function in Javascript.

Function in Javascript is a block of code, designed to perform a task. When the function is called or invoked, it's executed. 

Functions are defined with the function keyword or as a constant. Functions may have names, or they may be anonymous. 

When we define the function, we can add a few parameters in the parenthesis after the function name. 

When we call the function, the values passed in the parenthesis are called arguments. 

SUBSCRIBE our channel, and let's start!

For written article and code example VISIT US on:

MEET US:
Рекомендации по теме
welcome to shbcf.ru