How was this video? Let me know in the comments below, I read each and every comment! ❤️ Next Video: Callback Functions in Js & Event Listeners 🔥 - kzbin.info/www/bejne/mKXNZGianZiSi5o
@VishalVerma-wn4by3 жыл бұрын
LOVED THE SERIES, DONT KNOW WHY ONLY 7K VIEWS. SHOUTOUT TO ALL JS ASPIRANTS, DONT WASTE TIME. COME HERE FIRST. YOU WILL HAVE BETTER UNDERSTANDING ANYWHERE ELSE AFTER THIS.
@ahmedmuhammedelsaid53453 жыл бұрын
it was one of the best videos and heavy one in this series really .
@monikasinha49853 жыл бұрын
Great video Akshay
@simple88103 жыл бұрын
Sir we request you to make one long video like this about ES6 ,that covers everything about ES6,,,,,plzz
@ankuragarwal40143 жыл бұрын
Please make video on behaviour of this keyword in javascript
@AmanMishra-pn3cq2 жыл бұрын
Things learned: 1. What is Function Statement ? A. A normal function that we create using Naming convention. & By this we can do the Hoisting. For Ex - function xyz(){ console.log("Function Statement"); } 2. What is Function Expression ? A. When we assign a function into a variable that is Function Expression. & We can not do Hoisting by this becz it acts like variable. For Ex - var a = function(){ console.log("Function Expression"); } 3. What is Anonymous Function ? A. A Function without the name is known as Anonymous Function. & It is used in a place where function are treated as value. For Ex - function(){ } 4. What is Named Function Expression ? A. A function with a name is known as Named Function Expression. For Ex - var a = function xyx(){ console.log("Names Function Expression"); } 5. Difference b/w Parameters and Arguments ? A. When we creating a function & put some variabels in this ( ) that is our Parameters. For Ex - function ab( param1, param2 ){ console.log(" } & When we call this function & pass a variabel in this ( ) that is our Arguments For Ex - ab( 4, 5 ); 6. What is First Class Function Or First class citizens? A. The Ability of use function as value, * Can be passed as an Argument, * Can be executed inside a closured function & * Can be taken as return form. For Ex - var b = function(param){ return function xyz(){ console.log(" F C F "); } } 7. Function are heart of JS. They are called first class citizens or first class functions because they have the ability to be stored in the variables, passed as parameters and arguments. They can also be returned in the function.
@maneesharandeniya2 жыл бұрын
"When we assign a function into a variable that is Function Expression. & We can not do Hoisting by this becz it acts like variable." Cannot do hoisting is wrong here. Variable is hoisted. It means It cannot execute as function until it is defined as function.
@AmanMishra-pn3cq2 жыл бұрын
@@maneesharandeniya Oh Thankyou , I will correct it
@differfields19162 жыл бұрын
Thanks😍
@biswaranjanbarik4052 Жыл бұрын
thanx man.
@sanamahuja2033 Жыл бұрын
Stmt vs expression. Expr can involves operand and operations. And expression can be assigned a value or executed as a value stmt cause side effect. Fn stmt is same a declaration without assigning it to a var eg. Function a Expr- var a = fn Anonymous without name iife or assignment First class citizens Named fn expr When fn with a name is assigned to a variable also this name is local scoped it can be used for recursion but not outside Arrow fn you know context is same parent
@suman-majhi3 жыл бұрын
akshay bhaiya confused in interview. My ans would be at that point: Every function is beautiful, either it is function expression or it is function statement. 😂😂 love you bhaiya❤️❤️
@0xFOXHOUND3 жыл бұрын
The interview startup's name rhymes with "Tomato" For Revision Function statement / Function Declaration : the function is normally defined and can be used later on Function expression : the function is first created and assigned to a variable so that it can be called by its variable name and unless it is defined, it cannot be executed otherwise it throws out "Uncaught TypeError" Anonymous function : function where there is no need to define name for the function, it just can be assigned to variable Named function : Normal function with its name assigned to a variable !!In this case you cannot call function by its name in outer scope!! (Scope Chain) first class Functions / first class citizens : 1) used as values 2) can be passed as argument 3) can be executed inside a closured function 4) can be taken as return
@AnkitKumar-xk9fe2 жыл бұрын
❤️
@aryantiwari4942 жыл бұрын
interviewer is may be arnav gupta
@GauravSharma-ic5rd3 жыл бұрын
This is the first time I binged watched a course and It is really exciting. Feels like you are revealing the story of JavaScript. Eagerly waiting for the next episode
@akshaymarch73 жыл бұрын
❤️
@ankuragarwal40143 жыл бұрын
@@akshaymarch7 Please make video on behaviour of this keyword in javascript
@piesquareisg2 жыл бұрын
Really man!! Can't stop watching from the last 3 hours!!!
@definitelynotrohan Жыл бұрын
fr fr
@aditisharma25523 жыл бұрын
I'm addicted to this series! Watching even in office hours, after office hours, all the time.
@novanoskillz41513 жыл бұрын
I love how akshay didn't do so well at the interview. but he kept pushing forward. he went home and learned everything he needs to know. Now he's so knowledgeable that he's able to teach thousands of people how to also become programmers... #sucessStory
@anshsharma75103 жыл бұрын
Again.... And again.... I can't stop saying that it is the most beautiful JS course 🤗🤗
@AnaRamirez-ng1tj2 жыл бұрын
Words cannot express how much I love this series.
@HemantWagh073 жыл бұрын
Arguments are passed to function & Parameters are received in/by function
@anamikayadav96533 жыл бұрын
Nobody could have explained it better. Just a suggestion: Please upload frequently so that more topics can be covered soon. To be honest, we always wait for your new and exciting videos.
@anitasunildesai7 ай бұрын
Your greatness is accepting your failures and learning from them. If that interviewer was watching this video, she must feel proud of you.
@garimakumari43462 ай бұрын
when you said functions are so beautiful so beautiful at time 14:15 sec..i remember one line...functions are so beautiful ,so elegent just looking like a woow. 😃thanks man for this amazing series
@bhanuprakash18634 күн бұрын
Same here Lol
@LifeAtMH413 жыл бұрын
Interviewer: What are functions in Javascript? Me: Functions are beautiful.. Interviewer kicks my butt 😅😅
@atulmittal33323 жыл бұрын
Functions are the heart of Javascript.
@priyanshugupta55593 жыл бұрын
lol
@pemadechen69823 жыл бұрын
hahaha
@HimanshuSingh_923 жыл бұрын
Lol
@dr.shreyas1233 жыл бұрын
Hahahaha
@aroundtheglobeSwati3 жыл бұрын
I've been watching these videos for last 3 days and these are simply awesome and better than many paid courses where the method of teaching is monotonous. These are simply awesome!
@kirtimittal29743 жыл бұрын
I had encounter once "First class citizen" in a js book , but i get to know the real meaning of it after watching this video. Thanks #Akshay for explaining this in so simple terms
@chromashift2 жыл бұрын
How, HOW did you manage to in one series nail so many (important) aspects & make them so clear; This is much of the stuff that's "hidden" in the "Advanced" section of the MDN documentation. awesome!
@justasimplegal3 жыл бұрын
Kudos to your abilities to explain things so clearly! I am addicted and learning a lot! Plus your extra entertainment factor keeps your viewers engaged☺️
@aayush54743 жыл бұрын
JS functions are the next contenders for Miss Universe
@akshaymarch73 жыл бұрын
❤️
@reidwilliamson64773 жыл бұрын
They are quite beautiful tbh
@rhodesjh3 жыл бұрын
🤣🤣
@rachnamehra36973 жыл бұрын
🤣
@ranjeetrawat10902 жыл бұрын
😄😄
@nitinsoni99563 жыл бұрын
This kind of content and explaination are often found in the paid courses. You are doing a fantastic job in explaining such topics and helping fellow programmers 👍👍
@sambasiva41253 жыл бұрын
man i completed watch all your javascript videos like as "mirjapur" web series
@nirmalkumar40112 жыл бұрын
U r not alone
@ayikkathilkarthik43123 жыл бұрын
Create a video on "this " in JavaScript. It is the most confusing thing in it. Love your way of explanation.
@arnavsingh03 жыл бұрын
This is better revenge story than "thukra ke mera pyar". 😂 On a serious note, people may feel little guilty for watching such quality videos for free. Huge Respect for you. 🙏🙏🙏
@akshaymarch73 жыл бұрын
Thank you so much for your comment, means a lot! ❤️
@ompandey45952 жыл бұрын
@@akshaymarch7 pls bhaiya reply how much knowledge of js req for for frontend Do I need to learn like programming or should have basic knowledge
@sachind56672 жыл бұрын
When its 2am and you cant sleep no worriy Akshay is here to give you a good company
@iyashlodaya2 жыл бұрын
First Class Functions -> The ability to to use functions as values and which can be passed as arguments to another function, and also can be returned from functions. This thing can be answered in sleep now! Well explained Akshay 😃
@prashanttanwar32613 жыл бұрын
Slowly Slowly lol Epic end of this beautiful video
@akshaymarch73 жыл бұрын
Hahaha, glad you noticed. 😂
@simple88103 жыл бұрын
sir u r the great watched ur video of interview on javascript that was so much funny u r the man who help us how to learn sth that everyone should be able to survive in the market,,,,ur ways of teaching is totally different from all other youtuber ,,u r just unique..............
@AmanRaj-zo7bx2 жыл бұрын
One more advantage of anonymous function - can be used as IIFE(Immediately Invoked Function Expression) or Self Executing Functions. Ex - (function (){ console.log("This is an Anonymous function"); })();
@Happiness-z7l2 жыл бұрын
I'm watching this channel from Iran Much appreciation Akshay You are one of best teachers in JS for sure I loved js before but after knowing your channel i knew why i love js so much😍🙏🏽🙏🏽🙏🏽❤
@farazhusain9253 жыл бұрын
I've completed my master's in mechanical enginnering, and after that, I planned to switch my career in the IT industry. Yesterday, I cracked the first round of interviews for the position of front-end developer. All the questions on JS were from your videos, and I can bet that the interviewer has also watched your Namaste Javascript series.
@syedjunaid64112 жыл бұрын
haha bhai i m also mechanical engineer doing my masters while learning coding in sha allah will get ready for interviews by next 2 or 3 months
@-AjayChauhan6 ай бұрын
slowly slowly... YOUR CONTENT IS FABULOUS AND MAKE ME FALL IN LOVE WITH JAVASCRIPT NOW
@rahulk.creative3 жыл бұрын
Hi Akshay, I am a software engineer and I'm a big fan of javascript. I really like the way you explain. Your explaining skills are amazing. I really love your videos. Hats off to you brother!
@indiansoftwareengineer48993 жыл бұрын
Bhai, you are putting very high amount of hours into channel for us, thanks a lot for this.....
@syedFAHIM-el1wr Жыл бұрын
I have forcefullly stopped here from bingewatching the playlist...along with maintaining proper notes I havent binge watched an educational content like this..... kuch to jadu hai isme..... very crystal clear explanation.
@SrinubabuRavilla Жыл бұрын
Many were said the JavaScript is beautiful but they didn't project as beautiful. But if you said it is beautiful you make it beautiful.... JS Guru.
@poojapal-iy4vi3 жыл бұрын
Please complete this series as early as you can it's amazing and there is lot of thing left to cover...
@ApurvKhare3 жыл бұрын
If you ever create a paid course on anything revolving around Javascript like Node or React, I'll definitely buy it. There is sooooooooo much to learn from you.
@mdfaiyazulhussain87522 жыл бұрын
The Efforts he makes in all this content is I haven't seen anywhere guys press like button we should also give back.
@shubhamh74513 жыл бұрын
holy shit, i had an interview today and I definitely made fool of myself. For sure! But then good to see, even Akshay bhayya has made fool of himself sometime😂. Beautifully explained, can't thank enough!
@Ranjeetvishwakarma-72Ай бұрын
In Simple term - Function are so beautyful so elegant just looking like a wow🌸👌
@balajisv40523 жыл бұрын
"The interviewer was looking straight at my face". I could feel the nervousness in my stomach, while you are explaining it. :p I wish, the interviewer asks the same question to any one of your viewers in any upcoming interviews, and they nail it.
@akshaymarch73 жыл бұрын
Yeah, time to upskill ourselves and nail the interviews. 🔥
@saveribandyopadhyay14882 жыл бұрын
I feel helpless if I don't find any specific topic in your series. I am addicted to this series.. Thanks Akshay.. Plsssssss post a video separately on arrow functions and how it works behind the scene. pls pls plsss...
@ToonGalaxyTales3 жыл бұрын
@Akshay Saini, you are putting hard effort to make us understand on JS. This is something unique.
@SamAbaasi2 жыл бұрын
Namaste Akshay...Thank you so much...I work for 3 years with JS and after watching your tutorial I understand what is JS and how work
@codenerd70612 жыл бұрын
I'm paid money to the same Course which is free on KZbin and your explanation and love and passion towards teaching is great
@Rachana4533 жыл бұрын
Functions are very beautiful in JavaScript. Its heart of JavaScript
@ChillCityNaveen Жыл бұрын
literally before starting the video itself am searching where is the like button thats how I am attached to your videos thanks for this whole series and i bought Namaste React series as well you impressed most of the frontend guys love you brother 😍❤
@harshithvenkatesh20533 жыл бұрын
Namaste Javascript is one of the best thing that has started in 2020 :D
@tanujupreti3 жыл бұрын
Or the only good thing that happened this year 😂
@anupam60452 ай бұрын
function is heart of javascript and javascript is heart of akshay bhiaya, no one can teach js better than him
@saubhagyasahoo93593 жыл бұрын
This is the only series that I watch without any skip, without any second thought of learning from somewhere else......because of the way u teach sir.......it builds a person's trust in you that yes your videos are enough to know everything in Javascript.......thank you so much for teaching and please never stop sharing your knowledge with us.
@akshaysharma304983 жыл бұрын
You are the type of guy I can sit and have long conversations with, without getting bored. I like learning new stuff and going to my workplace and tell others about it, unfortunately "That's so cool" isn't the reaction that you get from most people because knowledge doesn't make people go "That's so cool" usually. But it does to me and I assume you'd react the same way too XD I have a workplace senior I hang around with for most of the free time coz we both fall in this category. Thanks for all the videos. I must admit tho I'm jealous coz I like explaining stuff with same enthusiasm as you but ... nobody would listen to me and then it just feels like it doesn't matter that I know it :/
@shivammal1294 Жыл бұрын
Closure: are function with its lexical environment. Promise: eventually completion of asynchronous task Hoisting: variables are allocated memory and initialise as undefined on top of the program
@ayushrathour47995 ай бұрын
I dont know why i feel so safe studying from ur videos.......the senior we all want I guess. The song edited at last part is so entertaining
@Imran359303 жыл бұрын
First video of yours, I watched on KZbin was "async vs defer attributes in Javascript" almost 1.5 year back. I watched it so many times, almost before every interview and I commented first time on KZbin because that explanation compelled me to write something in comment and I wrote "I usually don't comment on YT but you compelled me to do so" and I got a reply from Akshay sir/Akshay bhai/Ustaad ... from that day only, I am addicted to write these long comments and I usually got reply from Akshay bhai. Thank you so much. We (the student of yours) will always remember you. You will be remembered for you great work forever. Love
@akshaymarch73 жыл бұрын
Love you, brother! ❤️
@akshaymarch73 жыл бұрын
Thank you for such a beautiful comment, it means a lot. So happy to know that you're watching videos since async and defer video. We have come a long way together. Thank you for growing along with me during this beautiful journey of KZbin. ❤️
@akhila.sakhila90183 жыл бұрын
you saved my time to get this structured overview of function concept in js in one vedio within 22minutes that i had been postponing for days . An heart to you♥️
@gautamverma97622 жыл бұрын
Akshay sir you made me fall in love with learning, which i hated till now even after graduating . Thanks a bunch sir, your method of teaching is next class and soo understandable as well as exciting. I got your channel referred from one of your friends and i am glad that he did.
@muhammadhusnain82013 жыл бұрын
You literatally deserve more than one thumsUp dud❤️
@amanjha33462 жыл бұрын
Akshay you hail the lord function concept of Javascript....🤓🤓
@nvnsyaswanth3 жыл бұрын
Came across this series a little late. But completed all 15 videos in 2 days along with practice. I'm addicted to this :P Thank you very much bro..
@giridharreddy1997 Жыл бұрын
Dude if I had your address... i would have definitely reached out to you because I have become a fan of yours for being such a professor who would not have been thought by the inventors of Javascript.... Thank you soo... sooo.. much .... I know money does give happiness but not satisfaction .... I believe you are satisfied by making many of us understanding javascript the way it is .... Hands off to you man... Hands off....
@dawah75563 жыл бұрын
Will you please cover some DOM concepts in your Next videos that will be really helpful. Thank you for all your efforts to teach us.♥️♥️
@mohammadsaleem2811 Жыл бұрын
I have been learning JS for over two years and there were so many basic concepts that didn't make sense to me despite watching hundreds of videos. Man the way you explain the concepts and what's actually happening "behind the screen" makes so much sense. You are truly a gem.
@RahulSharma-bo5jc2 жыл бұрын
Each Video in the series have a special Outro music 😂♥️. Just love it. Amazing series. Before watching this series, I thought i knew javascript, Now I understand it completely i feel. Thank you for this series. ♥️♥️
@OnlineSchoolAbir2 жыл бұрын
Right now the interviewer thought, Owwhh I lost the diamond in search of gold. Love from Bangladesh
@akshaymarch72 жыл бұрын
Love from India 🇮🇳
@aj_shela2 жыл бұрын
Can't believe you were nervous in the interview... For that startup: In search of gold they lost the diamond Thanks for this amazing series.
@status_king91048 ай бұрын
If your interviewer is Akshay Saini and if he asks you What are functions in JS? Just say "Functions are heart of JavaScript". You will be hired.😂 . Best video for functions jn JS.
@JustinPhilip13 жыл бұрын
I was asked this same sort of questions, as your initial 2 mins with the interviewer, and i just blabbered it something else. Now i would want to get interviewed again. LOL, Thanks Akshay bhaiya !
@sachidananddwivedi16743 жыл бұрын
Slowly slowly..slowly slowly..we fall in love with js ❤️❤️❤️
@iemhkalra Жыл бұрын
0. Function statement is same as function declaration. 1. Named function expression vs anonymous function expression. 2. Higher Order functions / Functions are first class citizens 3. Parameters vs arguments in functions
@shubhamlakhara71852 жыл бұрын
Bhaiya ji you are fire I'm trying to understand what is function expression and declartion from articles, some of examples but ghnta kuch smj me aaya and now I random search on youtube and find you without a single minute blink my eyes and watch your video in single shot and got my answer what exactly function are thank you so much 🙏🙏🙏🙏🙏🙏🙏🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
@manishkvig91772 жыл бұрын
Your way of explaining the concepts are really good, can we expect the ReactJS series in the future? Thanks for these wonderful JS Series.
@simple88103 жыл бұрын
all doubt about functions and everything about function explanation in one video, you're amazing sir thanks ,we are learning Js now......
@monikabhardwaj91052 жыл бұрын
Cleared the concept very well, this series has something for all the people from freshers to college students to experience people.
@SakibulIslam-- Жыл бұрын
1. An anonymous function is a function that does not have a name. we can not declare an anonymous function. it,s gives a syntax error. if we store anonymous function in a variable, it,s known as a function expression. we use anonymous function only as a value. 2. One common use case for anonymous functions is as callback functions, which are functions that are passed as arguments to other functions. 3. In JavaScript, functions are considered to be first-class citizens. just because of 1 . we can use Functions as values. 2. we can use Functions as arguments 3. we can use Functions as return values 4. difference between a function statement or declaration with a function expression and an arrow function is hoisting.
@m-37743 жыл бұрын
I am coming from LinkedIn post, I appreciate your hard work 🤗
@BlackZero8809 ай бұрын
I have my interview by 4:00 PM, Love you Akshay ❤
@Siva-lx9dw3 жыл бұрын
FUNCTIONS ARE VERY BEAUTIFUL IN JAVASCRIPT 😍😍
@MallikarjunaGoud182 жыл бұрын
Once in a time i addicted to triller web series. Now your videos on Java script🔥. I loved the way explain the concepts❤️
@one.mr.benjamin3 жыл бұрын
Sick Outro - One Dance, using it even before the trend. Always ahead of Game. 🔥
@apoorvgupta6833 жыл бұрын
Akshay - “ Trust me, i am not going anywhere “. Bro come back, we need your videos. Promise, CSR vs SSR, this paradox etc etc. We are hanging now in middle bruh! Kidding, i hope everything is well, and if you have lost zeal, think so many people/fans are waiting and dependent on you. Use this as a social responsibility or motivation. Whatever works for you Summing up - “Keep up the good work, please. Take it literally”
@akshaymarch73 жыл бұрын
I haven't lost zeal, teaching is something which I love to do and will keep doing forever. Just got busy with some personal issues. I'll be back soon. 😇🙏
@riyazahmedpathan38509 ай бұрын
Functions in JavaScript :- ‘So beautiful, so elegant, just looking like a wow!’ 😅😂
@vinothkumarv97223 жыл бұрын
Vinoth Love >> Akshay: Wow amazing 😍 function series more explanation... Super. 16:36 and 19:28 is I guessed perfect because last video too much clearly understood me And mainly here j Learned important context from function arg and parameters means what where is used.. before would say many time arg and parameters but not clear but today I clear both this where needee call correct name. Super Akshay.. really amazing... waiting for next video soon... Thanking you Namaste 🙏🙏🙏🙏🙏🙏❤️❤️❤️❤️❤️❤️❤️❤️❤️ Javascript. .
@wabbyshabby Жыл бұрын
Learning a LOT slowly slowly, slowly, slowly, slowly slowly 😋
@parthojha693811 ай бұрын
This is the first time i've binged watch the whole course, and really getting interested more and more
@FitnessHacksWithAjay2 жыл бұрын
I am watching this video series from last 2 days and it's mind blowing I must say! The way you have taught in whole series is better than any paid course and interesting.
@sandorturbucz425 Жыл бұрын
Awesome as always. Am I the only one not finding that arrow function episode? :D
@TW-uk1xi6 ай бұрын
The way you have explained, now i am also able to understand why function is also first class citizen in python
@shreyasingh12583 жыл бұрын
these videos never fails to add dozens of values to my prior JS knowledge!
@KrishnaYadav-zu5oz3 жыл бұрын
🙏🙏 sir really aap great ho Mera graduation ho gya IT se muje ab. Clear hua ye ❤️🙏🙏🙏
@ankittyagi11782 жыл бұрын
your channel is my new Netflix .
@himanshubhandari72223 жыл бұрын
And that interviewer might be watching this video to understand the concept in detail.. 😂 Love from Dehradun ❤️
@delmayank3 жыл бұрын
Good job. Keep it up. I am reiterating here once again. "Why do people watch Carryminati videos?". I mean what the heck do they learn from it.
@DheerajKumar-tk3vt3 жыл бұрын
Literally I fell in love with Javascript because of you bro🙂Thank you so much for sharing this knowledge 🙂
@sergiisechka19932 жыл бұрын
Akshay! Me and my friends consider you as the very Best teacher on youtube!
@monikan98542 жыл бұрын
Thanks for revealing the underhood of javascript .. as u said i used to work on these all but didn't knowing the things which you explained! Thanks for this life saving tutorial🙏❤️
@deeniyath229 Жыл бұрын
Remember points 1.Function declaration or statement? a.funtion with keyword function and name is called function declaration or statement 2.function expression? a. When function is declared with a variable is called function expression for ex like this var a= function (){} So the main difference between expression and declaration is in the concept of hoisting we can't call the expression function before initialisation 3.anonymous function? a. Function without a name is called anonymous function when we try to call the function it is give error ex function (){} 4.first class functions? The function is used as a value and used as a argument in other functions, and return the functions inside other functions together is called first-class functions or first class citizens
@Saikrishna-mw5ti Жыл бұрын
In JavaScript, functions are a fundamental building block of the language. Here are brief explanations of some important concepts related to functions in JavaScript: Function Statement: A function statement is used to declare a named function. It uses the function keyword followed by the function name, a list of parameters (in parentheses), and the function body (in curly braces). Example: javascript function greet(name) { console.log(`Hello, ${name}!`); } Function Expression: A function expression is used to create a function value and assign it to a variable or a property of an object. It can be either anonymous or named. Example: javascript const greet = function(name) { console.log(`Hello, ${name}!`); } Function Declaration: A function declaration is a statement that declares a named function in the current scope. It is similar to a function statement, but can be used inside any block, not just at the top level. Example: javascript if (someCondition) { function greet(name) { console.log(`Hello, ${name}!`); } } else { function greet(name) { console.log(`Hi, ${name}!`); } } Anonymous Function: An anonymous function is a function without a name. It can be defined using a function expression or passed as an argument to another function. Example: javascript setTimeout(function() { console.log("Time's up!"); }, 5000); Named Function Expression: A named function expression is a function expression with a name. The name can be used to refer to the function inside the function body or from outside. Example: javascript const greet = function sayHello(name) { console.log(`Hello, ${name}!`); } greet("Alice"); // "Hello, Alice!" sayHello("Bob"); // ReferenceError: sayHello is not defined Parameters and Arguments: Parameters are the named variables that are defined as part of a function declaration or expression. Arguments are the values that are passed to a function when it is called. Example: sql function sum(a, b) { return a + b; } const result = sum(2, 3); // arguments: 2, 3; parameter names: a, b console.log(result); // 5 First-Class Functions: In JavaScript, functions are first-class citizens, which means they can be treated like any other value. They can be assigned to variables, passed as arguments, and returned from functions. Example: javascript function sayHello(name) { console.log(`Hello, ${name}!`); } const greeting = sayHello; // assigning a function to a variable greeting("Alice"); // "Hello, Alice!" Arrow Functions: Arrow functions are a shorthand syntax for defining functions. They use the => symbol to separate the parameter list from the function body, and can have an implicit return value if the body is a single expression. Example: javascript const greet = (name) => { console.log(`Hello, ${name}!`); }; const double = (x) => x * 2; // implicit return value
@neelthakkar44923 жыл бұрын
Huge thanks for this video. I was really a person who used to get confused when it comes to wordings used in books and blogs but now i feel like most of the confusion should be gone. Appreciate you man.❤️
@HominisLupis2 жыл бұрын
Akshay, I need a Namaste Javascript tee or hoodie man. I'm in the beginnings of my programming journey, and this course makes me feel that I can, without it taking years, understand this crazy world of Front End Dev, ie, Javascript.
@vitalvisions4U3 жыл бұрын
I'll remembere this for lifetime - first class functions have ability to use function as values to pass it to another function or to return it from a function.