Modern JavaScript Tutorial #4 - Functions

Поделиться
HTML-код
  • Опубликовано: 14 апр 2019
  • 💻 Get the full Modern JavaScript (novice to ninja) course from Udemy. Discount auto applied:
    www.thenetninja.co.uk/udemy/m...
    In this modern JavaScript tutorial we'll take a look at functions - function declarations, function expressions, arrow functions and more...
    ----------------------------------------
    🐱‍💻 🐱‍💻 Course Links:
    + Course files - github.com/iamshaunjp/modern-...

Комментарии • 372

  • @themodernmonk7
    @themodernmonk7 4 года назад +293

    8:55 Function arguments and Parameters
    13:42 Return Functions
    18:10 Arrow Functions
    27:11 Methods and Functions
    30:43 Callback Functions
    39:13 Reference to UI

    • @sathvikraomp2006
      @sathvikraomp2006 3 года назад +5

      Thanks a lot mate

    • @therickestpicklerick
      @therickestpicklerick 3 года назад +2

      Thank you.

    • @oussama.1997
      @oussama.1997 2 года назад +2

      thnx bro

    • @melforbes05
      @melforbes05 Год назад +2

      I only wanted to watch the section on arrow functions - you've saved me so much time this evening! Thanks so much! :)

    • @Escko
      @Escko Год назад

      not all heroes wear capes

  • @Sugurous
    @Sugurous 2 года назад +5

    Doing a presentation of 1 min took me a lot to learn it and then I messed it up. This guy spoke for more than 40min without lagging. Respect!

  • @ryanford516
    @ryanford516 Год назад +6

    I love it how our favorite Ninja explains things not only to impress the viewer but to actually make the concepts in question available for understanding. Weird notion, right? Any tutorial is supposed to explain things after all. But you'd be surprised how the vast majority of them are uploaded for ANY other reason but break down their topics in a clear and concise manner. Kudos to Shaun for putting these out for free!

  • @mitchell4217
    @mitchell4217 4 года назад +32

    Just like all your videos, I love that you write out the functions several ways, function() vs arrow function so that when we have to look up our own issues, we aren't completely lost when we don't find a consistent answer. You are really helping to show standards. Much appreciated.

  • @decodedcode302
    @decodedcode302 2 года назад +12

    I was devastated on an online course. The material they provided explains exactly what you do in this video. I just could not comprehend it without someone show me exactly what you doing here. Thanks you for making this videos available to learn. You are a good teacher.

  • @nitinkaushik5144
    @nitinkaushik5144 4 года назад +171

    Probably the best tutorial on functions, cleared all my doubts.

  • @kareynjeri3982
    @kareynjeri3982 3 года назад +10

    my 3 months of trying to understand javascript have been summarized in 43 minutes and i have actually understood smth for the first time ! Thank you, Man !

  • @moe9647
    @moe9647 4 года назад +125

    mate you're better than the 3 years i wasted on my bachelor's

  • @vladurs6475
    @vladurs6475 4 года назад +42

    i've watched many tutorials and read many articles, but you explained it with great detail and with good examples. Thank you

  • @CDitfort
    @CDitfort 5 лет назад +52

    You have a gift to teach. Your courses have very good content but you can also teach and explain very well. I'll definitely be buying your course.

    • @NetNinja
      @NetNinja  5 лет назад +13

      Thanks Chris, if you need a discount code for my Udemy course, just let me know!

  • @tenc6491
    @tenc6491 Год назад +3

    Hi Shaun, I was a RUclips tutorial nomad until I found your channel. Man oh, man! You have such an awesome teaching style that makes everything easily graspable regardless of any toughness level.
    As soon as I finish your modern JavaScript Tutorial, I am going to buy your React course on Udemy. I wish I had found you earlier.
    Thanks for everything you do mate! Much appreciated!

  • @jkwarren375
    @jkwarren375 3 года назад +14

    My dumbass literally cried cos I finally get it.. after watching hundreds of other tutorials, this video was a eureka moment T_T ..My ADD finally get how it works, God bless dude T_T

    • @jollyjokress3852
      @jollyjokress3852 3 года назад +2

      sometimes it helps when someone is just good at explaining. I liked the explanation of the "in between" stuff. I also got it now for the first time ;)

    • @MrIshumaru
      @MrIshumaru 3 года назад +1

      same, I dont "understand" something until I understand each part and piece that I'm using, and this guys explains in enough depth where my brain is like, cool this works.

    • @jkwarren375
      @jkwarren375 3 года назад

      @Aero Dynamix you dumb if you ask question like that lmao “wHy aRe yOu pRoGraMmiNg?”. Okay.🤣

  • @Nate-xv5hu
    @Nate-xv5hu 4 года назад +4

    I think the main thing that this tutorial is missing is having the viewers actually participate, like instead of just learning things, putting those things to use as we build something. Besides that, this is very helpful. Thank you!

  • @busyhero
    @busyhero 5 лет назад +8

    Your teaching style is so clear and easy to follow. Thanks for letting us preview before buying. :) With so many JavaScript Udemy courses, this really helps me decide!

  • @MrSadPanda
    @MrSadPanda 2 года назад +2

    Not even halfway through and from this tutorial alone, I understand functions better than most of the other videos + codeacademy! Great tutorial

  • @frontend9206
    @frontend9206 2 года назад

    Man you nailed it .
    I saw too many tutorials and article but havent got clarity about terms.
    Your videos cleared all the points in one shot .
    May go bless you .
    Thank you!

  • @dobingify3130
    @dobingify3130 2 года назад

    I've watched a lot of tutorials about functions but I'm difficult to understand it, until i saw this video. I'm very comfortable to use function now. This is so helpful. Thanks bro!!

  • @randomsymmetry4920
    @randomsymmetry4920 4 года назад

    I have watched many tutorials, yours is the only one that make sense to absolute beginner. Other's are too lazy to explain basic concept, and I like you keep doing different scenario to clear our questions, such as "what if I do this...", "what if I want to do that?" Those are great because those are the questions that never got answer in other tutorials for beginners. Thank you so much and keep up this style of tutorial!!!!

  • @bjgjuiuguoojpoo
    @bjgjuiuguoojpoo 5 лет назад +1

    Man! You are more than AWESOME! I am a big fan of Your tutorials and in my opinion this one is the most understandable material about modern js I've seen since now, comparing even with paid ones! Thanks for what You are doing for us!

  • @c.w.bertrand4633
    @c.w.bertrand4633 3 года назад +1

    @TheNetNinja I love you tutorials. I'm a beginner in the programming world. And I'm starting with JavaScript. I've been following your videos now for awhile. It's really been helpful. Thanks a lot.

  • @lofi_Insomnia_
    @lofi_Insomnia_ 2 года назад

    You are the best teacher on RUclips who can explain core concepts clearly. Huge respect

  • @STUPIDYOUTUBE_HIDINGMSGS
    @STUPIDYOUTUBE_HIDINGMSGS 4 года назад

    By watching how you explained FUNCTIONS thoroughly (not boring and not too complicated) and how callback works, I'm a follower! I've subscribed and will watch most of your videos now! Thank you! You made learning easy!

  • @hillarymusundi7186
    @hillarymusundi7186 4 года назад +8

    The way you explain functions is soo good! Thank you very much!

  • @thsdsyt
    @thsdsyt 3 года назад

    This is the best video I've ever saw on javascript functions. Couldn't find such a good source even in my native language.

  • @johnsmith-oy9kx
    @johnsmith-oy9kx 4 года назад +14

    only an expert can explain fundamentals this simple, thanks A lot !

  • @Lwifun
    @Lwifun 4 года назад +1

    this is the best explanation of function that ive seen in entire life,
    thank you!

  • @laurenwillmington8148
    @laurenwillmington8148 2 года назад +1

    thhhhhaaaankkk you! I don't know why my head couldn't grasp functions but I needed just a simple tutorial like this

  • @alexintech254
    @alexintech254 Год назад

    Never had such a clear explanation with respect to functions and passing of arguments or parameters.

  • @rosejune7701
    @rosejune7701 3 года назад

    i just love love love the way you teach, so clear, so easy to understand..thank you so much, God bless you for sure, this is the best tutorials on the planet

  • @johnconnor9787
    @johnconnor9787 5 лет назад +4

    Your real life example of forEach() method with HTML is a brilliant way to explain its purpose. Thank you!

  • @Ashfak_123
    @Ashfak_123 2 года назад

    The best channel to learn javascript. I learnt so much in 5 weeks of watching your videos!

  • @jeanthomas7523
    @jeanthomas7523 3 года назад

    Thank you, THANK YOU! I've been struggling to wrap my mind around the anatomy and setup of functions and this really clarified it for me!

  • @sahoosiddharth
    @sahoosiddharth 3 года назад +1

    I am grateful for being able to use this kind of amazing resource. Probably this is one of the best one on functions. Thank you for making this. God bless all.

  • @spark9314
    @spark9314 2 года назад +5

    Thanks to you I was able to pass my js entrance exam thank you so much 😭

    • @NetNinja
      @NetNinja  2 года назад +2

      That's great to hear! congrats spark :)

  • @MuhammadWaseemKhan-pg3vi
    @MuhammadWaseemKhan-pg3vi 4 года назад

    Best way of teaching,clear my doubts about function.thanks a million.

  • @khudoyorrakhmatov7530
    @khudoyorrakhmatov7530 2 года назад +1

    I haven't seen any tutorial so far which covers functions in great details as him. Well done 👍

  • @triple965
    @triple965 4 года назад +4

    I purchased a web development course in Udemy which turned out to be outdated, I then purchased another one which was sold as "2020", this one was not using the old ways to declare functions and skimmed through functions, leaving me in doubt and confused.
    I stumbled across this video in my search to clarify functions and I am glad to say that Net Ninja has cleared my doubts and I now feel more confident using functions. Thank you!

    • @4x_block782
      @4x_block782 2 года назад

      Hello bruh you are a good teacher best on RUclips please keep it up

    • @4x_block782
      @4x_block782 2 года назад

      Please is there any node.js extension to create a self host website with dns?

  • @the0dd0ne
    @the0dd0ne 3 года назад

    Probably the best vid you will find in youtube on function and also better than most of the paid courses !

  • @attilaszep9961
    @attilaszep9961 3 года назад

    I am IT student on Level5, but you teach to me a lot. It is very clear. Thank You. I follow you.

  • @mitchwintrow7197
    @mitchwintrow7197 2 года назад

    Wow! I am amazed with all of your videos. You've helped me to solidify so many concepts, especially when using Node.js. I'm watching these as a refresher and I'm highly impressed with all your videos. I'm excited to learn React from you

  • @northroadian8472
    @northroadian8472 3 года назад

    By far the best explanation of functions I have seen this makes so much more sense now.. Will be buying one of your udemy courses. Love the content thank you so much.

  • @omoyenikunle7909
    @omoyenikunle7909 3 года назад

    I have PHP background av always been lazy to switch to JS. You are the best tutor av ever seen online. Thank you.

  • @seanfletcher6564
    @seanfletcher6564 3 года назад +1

    At around 15 minutes you start explaining local variables. You absolutely nailed it. I am currently working a treehouse techdegree and you have proven a valuable outside resource.

    • @NetNinja
      @NetNinja  3 года назад

      Thank you :). I'm glad it helped you.

  • @gamertechkid1490
    @gamertechkid1490 2 года назад

    You have a great voice for this stuff. You don't sound sleepy like most of the other popular youtube webdev gurus.

  • @joemarino4519
    @joemarino4519 2 года назад +1

    Great stuff! One of the most helpful channels i have found while learning JS

  • @selahadinjemal7138
    @selahadinjemal7138 2 года назад +1

    The best video I've Came across so far, Filled a lot of holes in my brain. Thanks!

  • @kayhenryinjax
    @kayhenryinjax 3 года назад

    Thank you so much for these videos. I love your teaching style, very thorough and effective. Thank you!!!!!!!

  • @jessicaandres9549
    @jessicaandres9549 4 года назад +8

    Thanks , I follow you from Syria ... continue!

  • @md.akib5124
    @md.akib5124 5 лет назад

    all right then gang we can see that Shaun is clear and concise as always. Beginners will find this to be another ruby from him

  • @jakobo5521
    @jakobo5521 2 года назад

    That was just awesome. You are showing how to exaplain complex stuff in simple way. Keep your work man! Thanks a lot! :)

  • @margaritanedashkivska8647
    @margaritanedashkivska8647 2 года назад

    One of the best videos on this topic I've ever seen. Thank you so much! Bought your Udemy course already :)

  • @AM-cs8yi
    @AM-cs8yi 3 года назад

    oh so glad i found this, easily best js functions explanation seen so far on youtube thank you sir, will follow all your other content

  • @hahabobblehead2059
    @hahabobblehead2059 4 года назад

    Thank you Shaun! I didn't get it the first time around so I watched the video again!

  • @didbara
    @didbara 4 года назад +1

    I really love you dude

  • @ojingwachidiebere8487
    @ojingwachidiebere8487 2 года назад

    Words fail me to explain how you have helped me. You are really the best

  • @madionae
    @madionae Год назад

    it reallly helped me understand the topic more when you mention explicit terminologies. others just mention it as 'other way'. thank you for this!

    • @NetNinja
      @NetNinja  Год назад +1

      Glad it helped! :)

  • @libertychinguwa
    @libertychinguwa 5 лет назад +1

    I've watched dozens of videos on functions & this one is succinctly put....

  • @begaliaslonov3429
    @begaliaslonov3429 4 года назад

    I don't even want to go to a college to learn to code. The best ever JS lesson on the Internet!!!

  • @binnahcha5240
    @binnahcha5240 2 года назад

    I was stressing over functions for DAYS until I hunted down this video. THANK U

  • @donow4633
    @donow4633 5 лет назад +1

    This one is my most favorite, thanks ninja

  • @valentineelias7299
    @valentineelias7299 5 лет назад

    just a couple videos, and I had to buy this course. the way u explained stuff just made it so clear and easy to absorb. Thank you

    • @NetNinja
      @NetNinja  5 лет назад

      Thanks so much for buying! Hope you enjoy the course!

  • @Ssomberlain
    @Ssomberlain 3 года назад

    I paid for someones udemy js course and I had to come here to understand functions better. Thank you so much!

  • @vinodp7508
    @vinodp7508 2 года назад

    Best I ever watch regarding function in JS.

  • @yinonb172
    @yinonb172 4 года назад

    Best JavaScript Tutorial, I bought the full course and it is excellent ! , Arrigato Net Ninja San !

  • @alantao6895
    @alantao6895 5 лет назад +1

    Well done! I really liked the video. It's easy to follow along!!

  • @sambenjamin7515
    @sambenjamin7515 3 года назад +2

    "We know that methods are functions too we have also seen that we can pass arguments into functions and methods when we invoke them and we can use those values/arguments inside the functions and so for those arguments we have been passing in have been things like strings numbers but we can also pass in function as an arguments and when we do this the function we pass is called a call back function"
    my mind exploded a million times when he said that

  • @millicentnwokorie7147
    @millicentnwokorie7147 2 года назад +1

    i actually got a JS course on udemy but was unable to fully understand the concept of functions properly so i came to youtube to get more claification and that is exactly what i got from this tutorial. My only issue is you were speaking to fast but that's where subtitles come in handy.

  • @maryamzaki1097
    @maryamzaki1097 2 года назад

    this is the best explanation that i found so far

  • @borisbosnjak9772
    @borisbosnjak9772 5 лет назад +15

    Thanks for this! I should absolutely buy your full course

  • @inayatahmadzai4414
    @inayatahmadzai4414 2 года назад

    God bless you my man, you are doing a great job, you have removed lots of confusion of mine.

  • @shubhamagarwal2998
    @shubhamagarwal2998 3 года назад

    I am Competitive Programmer ... getting shortlisted for interviews but facing rejections bcz of less projects as compared to others ... this playlist helping a lot to boost resume in short time

  • @garyfinch7337
    @garyfinch7337 3 года назад +1

    You really explained functions well. I'm doing Jonas Schmedtmann's Javascript course on Udemy and, although he's a good teacher, his section on functions left me a little bit dispirited. Your 'earthly' explanation of functions was excellent. I think I'm going to do both yours and Jonas' Javascript courses together, you compliment each others' efforts. Just got to wait for a bargain sale day/week at Udemy and I'll be signed up for your course. Thanks again for your efforts, you're a natural; and there are fewer higher callings than teaching.

    • @tomstranney2234
      @tomstranney2234 2 года назад +1

      Glad to know I'm not the only one on that course haha. His functions section had be staring glassy eyed at my pc monitor wondering what is going on lol

    • @hamzamohamed6748
      @hamzamohamed6748 2 года назад +1

      Yeah his fundamental part 2 had me confused. Part one was very easy.

    • @succeeder3044
      @succeeder3044 2 года назад

      haha, same thing that brought me here, i almost gave up when i got to Jonas teachings on functions.I was really confused

  • @joeygarner1636
    @joeygarner1636 3 года назад +40

    I don't know about anyone else, but for me I need to see what all this code is actually used for in a real example building something; project based learning (not logging things to the console). Otherwise, I can't absorb it because I can't associate any meaning to what is being shown. Showing how functions work without context, for me, is similar to just giving a long list of random numbers to remember; don't know what its for or how to use it.

    • @awhitechilliify
      @awhitechilliify 3 года назад +9

      I am so glad I am not alone in this! Even some silly examples that could somewhat relate to real life or a real app functionality would clarify it for me.. For some reason majority does not teach it that way, whyy :(

    • @francisadekanye1537
      @francisadekanye1537 Год назад +2

      you need to understand how it works first before you can use it like you said

    • @hatorih3hanzo166
      @hatorih3hanzo166 11 месяцев назад

      Same 😁

    • @olorunmolafunmilayo1816
      @olorunmolafunmilayo1816 6 месяцев назад +1

      @@francisadekanye1537please do you know someone that teaches it that way?

  • @oghenefokethompson7407
    @oghenefokethompson7407 5 лет назад +2

    Thanks for all your tutorial. It really really helpful to me... You make me understand Every day in web development... I love you so much.. ..
    Note .. you are the best to me.....

    • @NetNinja
      @NetNinja  5 лет назад

      Thanks so much 😁

  • @michellesalas6175
    @michellesalas6175 3 года назад

    If I could jump out of the screen and hug you I would haha. This topic has been difficult for me to understand but the way you explain it is so clear and easy to process. Thank you so much

  • @dan110024
    @dan110024 3 года назад

    Doing another online course but I either forgot functions or they didn't cover it as well as this. This was great.

  • @xplodergr
    @xplodergr 4 года назад

    Great teacher! I will buy the full course!

  • @thethinhobbies9263
    @thethinhobbies9263 Год назад +4

    You are the best teacher.

  • @boriszolah3770
    @boriszolah3770 Год назад +1

    is almost 2023 and im still watching this video,,,, great stuff man

    • @NetNinja
      @NetNinja  Год назад +1

      Thanks Borisz, hope it's helpful!

  • @muzika5001
    @muzika5001 3 года назад

    Amazing video. Functions (How it works) well explained. I wish I could find this video few weeks before I struggled with functions topic. Also I would love to have udemy courses made by you. 😎

  • @oyinloluwaolatunji2504
    @oyinloluwaolatunji2504 3 года назад

    The best tutorial on functions.

  • @billyzman666
    @billyzman666 3 года назад

    I Appreciate all the time put into this, thank you!

  • @clemensvanmarwijk1034
    @clemensvanmarwijk1034 5 лет назад +2

    never clicked so fast on an javascript tutorial video xD

  • @auvidstudio5
    @auvidstudio5 4 года назад

    You have the right way to teach very clear, I'll definitely be buying your course great teacher

    • @NetNinja
      @NetNinja  4 года назад

      Thank you very much :)

  • @Bennypret
    @Bennypret 2 года назад

    You are awesome. You are a teacher. I wish i came across you earlier.

  • @leonardqelaj192
    @leonardqelaj192 2 года назад

    You are a LEGEND bro, how can you find these easiest way to explain things?
    Very IMPRESSIVE!

    • @NetNinja
      @NetNinja  2 года назад

      Thanks Leonard :)

  • @freddyprotech5099
    @freddyprotech5099 5 лет назад

    Really mesmerized by these gold tips!

  • @sheetaldheer5954
    @sheetaldheer5954 3 года назад +4

    Absolutely amazing course. Very well explained..I recommend this to anyone who is starting off with Javascript . I am also a beginner and this course has really helped me a lot.

    • @NetNinja
      @NetNinja  3 года назад +1

      Awesome, glad it helped! :)

  • @webknack922
    @webknack922 3 года назад

    Oh wow, what a tutorial.. Very well explained, Thank you !

  • @jasper5016
    @jasper5016 2 года назад

    You are an amazing teacher. Thanks for this amazing video.

  • @Juan.Jose.Jaramillo
    @Juan.Jose.Jaramillo 7 месяцев назад

    You're so talented at teaching. Keep creating incredible videos!

    • @NetNinja
      @NetNinja  7 месяцев назад

      Thank you so much! :)

  • @emrannazir1165
    @emrannazir1165 3 года назад

    The best tutorial of function love it..

  • @stefanjeremic5745
    @stefanjeremic5745 4 года назад

    Man, you are simply AMAZING!

  • @NarutoUzumaki-mn6xp
    @NarutoUzumaki-mn6xp 3 года назад

    Thank you so much, this video helped me a lot to understand the function in depth 😁🤩🤩🤩🤩🤩🤩🤩

  • @sarfrajansari1758
    @sarfrajansari1758 4 года назад

    I was so confused thanks man clearing my doubts,

  • @azeez7675
    @azeez7675 3 года назад

    Best Tutorial on functions. Thank you very much

  • @sylvestermnyeti1376
    @sylvestermnyeti1376 4 года назад

    I left programming course at college because of this Dude, and I don't regret my decision anymore😌.

  • @mohamudsharif8119
    @mohamudsharif8119 4 года назад

    You are the second person today to tell me that functions are fun

  • @letsgrajmy2157
    @letsgrajmy2157 3 года назад

    Bought those lessons, thanks mate.

  • @sayemarg
    @sayemarg 3 года назад

    Best Code Teacher 💪❤️