Functions - Javascript In Depth

preview_player
Показать описание
Let's learn about functions in Javascript. We will focus on arrow functions but cover "regular" functions as well. We go through function parameters and arguments, as well as how returning values from functions works.

Chapters:
00:00 Introduction
00:34 Functions Intro
05:09 Declaration and Calling
07:38 Function Call Flow
10:02 Functions Code Examples
15:44 Function Memory Representation
17:55 Function Parameters
24:58 Multiple Function Parameters
27:01 Multiple Parameters Code
31:51 Return Statement
35:25 Return Code Example
38:38 No Return Statement
42:38 Next Steps

Рекомендации по теме
Комментарии
Автор

Thanks a lot for creating such an amazing video. The illustrations and content really helped me a lot in understanding.

OplanoMulbah
Автор

great video, as usual! the illustrations are very helpful! I felt like this video had the perfect pace to understand the concept! Great work! Thank you!

timothyrees
Автор

The graphics and detailed explanations help a lot. I love the pace of your videos. Repetition is a big key for me to understand and grow/learn. Thank you!

Cltn
Автор

Super excited that I found your channel, your content is so refreshing!

buildervision
Автор

Drawings are amazing! Thank you for doing this!

Anythingwheels
Автор

Hi Nadar, Thank tons for making this series on YouTube for our community, so far in my career I was not able to clear my base concepts but following with your tutorial and your teaching skills I have gained lots of confidence and I love your channel and content, this has become my primary platform to learn Frontend development mostly Vanilla JS and I am hoping or I would say requesting you to make similar series for Angular in depth and teach each concepts in depth the way you teaches other modules, that will help lots of folks. Again much appreciated for doing this.

Rushant_Desai
Автор

really appreciated! I'm your 20th subscriber 😍😍

jashimkhan
Автор

I want to say thank you! for your awesome videos. They are super friendly for beginners in

lesleylema
Автор

Hi Nader, Thanks a lot for making this series. I'm just starting to learn Javascript and your content really help me learn the base concept.

diansoviyani
Автор

I'm new to coding and am just trying to understand functions a little better. I'm currently at 26:22 and I always get thrown off by "i" I have tried looking it up but there is not a specific answer I can find. What does it stand for?

mariahwiggins
Автор

The whole time throughtout the lesson I was wondering what if we don't add the return keyword and what will it return. I guessed 0, and 1, i guessed it would return whatever was inside function, and I guessed undefined and NaN, I'm just happy you explained it lol because it was driving me crazy throughout the lesson 😂

KRAKENBACK..
Автор

An Example to differentiate between "Parameter" and "Argument":

Imagine we are sitting inside a library and arguing about things, then the librarian comes and say to us that "TAKE YOUR ARGUMENT OUTSIDE" of here.

Hope it helps!

~An argument is not a part of the function, it is outside the function which we have to pass to the function only if needed while calling the function.

xerxes
Автор

Nader, I think you need to teach at the University. This is a great material. 😀

davidkabyemera
Автор

Damn... I thought I was OK with functions until I realised the default "return = undefined" thing. That only causes a problem when storing a function into a variable, doesn't it? If so... why? Haha.

For example:

const printName = (name) => {
console.log(name)
}

printName("Joe");
// returns "Joe" in the console log.

but...

const printName = (name) => {
console.log(name)
}

myName = printName("Joe");
console.log(myName);
// returns "undefined"

WHYYYY!? hahaha

Cheers, bro.

JoeMilneEnglish
Автор

Hey man you are out of the world, you have something different. Well, i have a question, what all are the upcoming contents of this course like are you gonna cover everything, every inbuilt functions and events and database connectivity?

shivamgupta