In this video we will talk about functions in JavaScript and I will explain what a function is, how to declare a function in JavaScript and how to use it.
During this video we will also talk about more advanced things like anonymous functions, arrow functions, variable scope and passing parameters to a function.
Functions are a very important concept in programming, they help us to better organize our code and avoid duplicate code, that is, not to write the same code more than once.
📺 Recommended Videos
=
👉 JavaScript Course for BEGINNERS: • Curs JavaScript in limba ROMANA pentru INC...
👉 HTML and CSS Course in ROMANIAN for BEGINNERS: • Curs HTML si CSS in limba ROMANA pentru IN...
👉 VS Code Course: • Visual Studio Code
========================================
🕗 Table of Contents
=========================================
00:00 - What is a function
01:27 - How to declare and use a function in JavaScript
06:19 - Anonymous functions
08:16 - Arrow functions
09:43 - Example of how to avoid duplicate code
12:53 - Scope of variables
15:28 - Passing parameters to a function
=========================================
🔔 If you like the YouTube channel, you can subscribe here: / @devschoolro
🔥 Want to help this channel?
=======================================
👉 https://www.buymeacoffee.com/devschoolro
👉 https://www.revolut.me/mariusoprea95
===================================
💬 Where to find me
========================================
👉 https://devschool.ro/
👉 Email: [email protected]
=