filmov
tv
JavaScript Functions In 90 Seconds #JavaScriptJanuary

Показать описание
Watch the entire #JavaScriptJanuary series from the beginning!
A JavaScript function is a block of code designed to perform a specific task and to be reusable. A standard, named function is defined with the function keyword, then a name, then parentheses.
The function name can contain letters, numbers, underscores, and dollar signs. The parentheses may include parameter names separated by commas. The code to be executed is placed inside curly braces.
You may hear the terms parameters and arguments used somewhat interchangeably. Arguments are the values received by the function when it is invoked, or called. The parameters, or arguments, are then used within the code block as variables.
Another thing to consider when writing functions is that variables declared within a function become local to the function and cannot be accessed outside of the function.
But functions do have access to variables on the outside. This is called scope. Outside of the function would be globally scoped and inside of the function is locally scoped.
I'll be releasing a new video every day in January! Stay tuned..
_____________________________________
📚 Learn to CODE in just a FEW months here:
_____________________________________
🛠️ Tools I use:
_____________________________________
💖 Show support!
_____________________________________
Watch Next:
_____________________________________
Connect With Me:
_____________________________________
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
#JavaScriptJanuary #31Days31Videos #codeSTACKr
A JavaScript function is a block of code designed to perform a specific task and to be reusable. A standard, named function is defined with the function keyword, then a name, then parentheses.
The function name can contain letters, numbers, underscores, and dollar signs. The parentheses may include parameter names separated by commas. The code to be executed is placed inside curly braces.
You may hear the terms parameters and arguments used somewhat interchangeably. Arguments are the values received by the function when it is invoked, or called. The parameters, or arguments, are then used within the code block as variables.
Another thing to consider when writing functions is that variables declared within a function become local to the function and cannot be accessed outside of the function.
But functions do have access to variables on the outside. This is called scope. Outside of the function would be globally scoped and inside of the function is locally scoped.
I'll be releasing a new video every day in January! Stay tuned..
_____________________________________
📚 Learn to CODE in just a FEW months here:
_____________________________________
🛠️ Tools I use:
_____________________________________
💖 Show support!
_____________________________________
Watch Next:
_____________________________________
Connect With Me:
_____________________________________
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
#JavaScriptJanuary #31Days31Videos #codeSTACKr
Комментарии