JavaScript Functions

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ค. 2018
  • JavaScript Functions
    🔥Get the COMPLETE course (83% OFF - LIMITED TIME ONLY): bit.ly/2M1sp4B
    Subscribe for more videos:
    / @programmingwithmosh
    Want to learn more from me? Check out my blog and courses:
    programmingwithmosh.com
    / programmingwithmosh
    / moshhamedani

ความคิดเห็น • 177

  • @rommelaquino3957
    @rommelaquino3957 4 ปีที่แล้ว +385

    This 5 minute video made more sense than my hour long online modules. Thank you!

    • @Onlyme2015
      @Onlyme2015 3 ปีที่แล้ว +1

      Shut up liar.

    • @quisp6228
      @quisp6228 3 ปีที่แล้ว +5

      @@Onlyme2015 shut up troll.

    • @amirrezajamadi4179
      @amirrezajamadi4179 3 ปีที่แล้ว +3

      @@Onlyme2015 wow, whats wrong with u m8?

    • @vedantthombare1028
      @vedantthombare1028 3 ปีที่แล้ว

      th-cam.com/channels/33whXQsED5bXjbgt-ICQ1Q.html

    • @chefalbert223
      @chefalbert223 3 ปีที่แล้ว

      seriously!!!!!!!! how crazy is that lmao

  • @dnjosh10
    @dnjosh10 ปีที่แล้ว +7

    I've watched tons of videos on function but this short clip summarizes everything. Thank you Sir Mosh

  • @jerichoo7346
    @jerichoo7346 3 ปีที่แล้ว +8

    Thank you Mosh! Very simple and straight forward. I am currently a Junior Web Developer and working through a boot camp for Full Stack. This was short but helpful and to the point, excellent material.

  • @vrsozluk765
    @vrsozluk765 2 ปีที่แล้ว +5

    This is the cleanest/purest/easiest explanation I've watched about functions. I learned it. Thank you!

  • @rachelcosta926
    @rachelcosta926 3 ปีที่แล้ว +6

    I am Brazilian and suffer from the scarcity of this type of content. your video helped me a lot. Thanks!

  • @jaylayoung2576
    @jaylayoung2576 ปีที่แล้ว +8

    You are the best. I started to feel like coding wasn't for me until I found your videos. Thank you so much, Mosh!

  • @aristotleanderson930
    @aristotleanderson930 4 ปีที่แล้ว +36

    This is a simple easy to understand tutorial on JS functions. I caught myself wondering how an array of objects with firstName and lastName arguments can be updated automatically. It is a natural building step. Thank you for putting this video and so many others out there for others to grow from.

  • @hcm4019
    @hcm4019 3 ปีที่แล้ว +4

    You are an inspiration. Every time I'm stuck, I watch your videos and you make things very easy!

  • @hamadi619
    @hamadi619 ปีที่แล้ว

    I'm learning JS for the first time. You explained this so succinctly, well done. Thank you.

  • @Jeicodes
    @Jeicodes 3 ปีที่แล้ว +6

    You explain everything so clear! Thank you loving the videos

  • @isitric
    @isitric 2 ปีที่แล้ว +1

    You've just cleared up exactly why someone should use parametres instead of variables - somethign I've been trying to find a clear explaiantion for - for ages!

  • @ganiyuridwan9940
    @ganiyuridwan9940 2 ปีที่แล้ว

    This 5 minutes video makes a lot of sense,I love all your TH-cam tutorials I attended ❤️❤️

  • @darcygibbons2891
    @darcygibbons2891 5 ปีที่แล้ว +21

    Thanks a lot. You made it very simple

  • @hcm4019
    @hcm4019 3 ปีที่แล้ว +11

    I would also like to share that you can add a default parameter. For example : function greet ( name= 'Valued Customer').... so that when you don't add any value to the argument, it comes out as: Hello Valued Customer . I hope that helps! P.S Whatever argument you would add later would override the default parameter.

    • @michibosire5000
      @michibosire5000 2 ปีที่แล้ว

      Thanks!

    • @georgenicoiiimanimbo7588
      @georgenicoiiimanimbo7588 ปีที่แล้ว

      Hi there, I am new to JavaScript. I tried this but it's only showing "Hello" on the console. What do you think is the problem?

  • @Augustein
    @Augustein 4 ปีที่แล้ว +1

    You made it so simple to understand. Big thanks from Australia

  • @flaggstang7977
    @flaggstang7977 ปีที่แล้ว +1

    Thank you again for making programming understandable ! I can't count how many times i have spent hours on simple problems and found the answer on this channel

  • @user-qo9kl5oz6r
    @user-qo9kl5oz6r 3 ปีที่แล้ว +4

    I completely understood that how to operate function.
    Thank you for lesson.

  • @christianhartwig4959
    @christianhartwig4959 2 ปีที่แล้ว

    subscribed....Thank you for taking the time to explain this without leaving out any basic details. So many times people who understand things explain them to people who don't as if they have the same experience level or knowledge.

  • @poisonedcupcake6860
    @poisonedcupcake6860 2 ปีที่แล้ว

    Thanks from a very happy lady looking for quality coding tutorials to supplement her learning! Legend!

  • @muhammadaadil3546
    @muhammadaadil3546 4 ปีที่แล้ว +2

    Your teaching style is so great
    Thank for the video

  • @senju31
    @senju31 5 ปีที่แล้ว +1

    Hello Mr.Mosh, I have been playing around with the Google Maps JS APIs and I tried what you just showed in the video and I didn't see anything appear in the console. For some background, I have separated the code into three different files, location.html, location.js & location.css. Is it that I should keep all the code in one file or is it something else?

  • @banetkaa
    @banetkaa ปีที่แล้ว

    This was really straightforward and simple. Thank you

  • @scottldn
    @scottldn ปีที่แล้ว

    crystal clear explanation, best I've seen. Thank you!

  • @somecat2993
    @somecat2993 3 ปีที่แล้ว +26

    thanks again mosh. you did a much better job of explaining this to me. I was stuck in Codecademy :p

  • @elianpahlow5861
    @elianpahlow5861 3 ปีที่แล้ว +1

    Thank you for this short and great explanation!

  • @The__Gent
    @The__Gent 2 ปีที่แล้ว

    Professors talk, teachers teach. You are a teacher. Thank you!

  • @chazcarothers135
    @chazcarothers135 3 ปีที่แล้ว

    How did you open the Console window on the ride side of your screen to preview your code?

  • @solomoneze2301
    @solomoneze2301 ปีที่แล้ว

    short ,concise and self explanatory thank you

  • @eggxecution
    @eggxecution ปีที่แล้ว

    argument is the supply of the parameter while parameter is the name of the input when function is declared. Superb!

  • @Xessoriez
    @Xessoriez 4 ปีที่แล้ว +4

    I am relieved of Arguments and Parameters in JS Now, thanks!

  • @juliemassa6024
    @juliemassa6024 3 ปีที่แล้ว +1

    I am learning JavaScript and was having trouble understanding functions. Your explanation was extremely helpful with my understanding. Thank you!

  • @sethelijahadams9704
    @sethelijahadams9704 ปีที่แล้ว

    This helped me understand parameters more, thanks boss

  • @user-hc5ul3ds5u
    @user-hc5ul3ds5u 4 ปีที่แล้ว +1

    Thanks a lot!
    I understood functions only thanks of this lesson

  • @HugoHenriqueGrah
    @HugoHenriqueGrah 3 ปีที่แล้ว +1

    Exactly what I was looking for. Thanks!

  • @jondrive8801
    @jondrive8801 23 วันที่ผ่านมา

    Great! Thank you. I pray all your videos are this good

  • @8biscoito8
    @8biscoito8 ปีที่แล้ว

    Oh my... It was very helpful. Now it more sense. Thank you!

  • @hsumyathlaing3005
    @hsumyathlaing3005 3 ปีที่แล้ว +3

    thank you so much sir! y'all JavaScript videos are so much knowledge and easily to understand for beginners.... i appreciate it!

  • @rubabali61
    @rubabali61 3 ปีที่แล้ว

    An excellent lesson, short and easy to understand.

  • @kelvinbotchway4588
    @kelvinbotchway4588 3 ปีที่แล้ว +1

    Can i please know how you setup your VS code with the javascript and the output to

  • @michaelotto2744
    @michaelotto2744 3 ปีที่แล้ว +7

    This is EXCELLENT. Really awesome job of concisely dealing with the composition and components of a function.

  • @samirvaliyev
    @samirvaliyev 4 ปีที่แล้ว +1

    Thank you for lesson. How can I download visual studio code theme like yours?

  • @gregburke7729
    @gregburke7729 4 ปีที่แล้ว +1

    great videos for a new JS developer! thank you

  • @joshuamichael845
    @joshuamichael845 ปีที่แล้ว

    Thank you for these, very well elaborated. God bless you

  • @aaradhyajain5463
    @aaradhyajain5463 2 ปีที่แล้ว

    thankyou so much.I was so confused about what are parameters and i finally got it

  • @TuhamSanusi
    @TuhamSanusi 2 ปีที่แล้ว

    Glad to found this!
    Quite helpful and straightforward :)

  • @webylancers5607
    @webylancers5607 2 ปีที่แล้ว +1

    JazakuMullaha Khaira!!..Aameen!!..

  • @jamiedo1905
    @jamiedo1905 ปีที่แล้ว

    Could someone tell me what program/app/site Mosh is using to write code in this video?

  • @ruchitpatel5827
    @ruchitpatel5827 5 ปีที่แล้ว +1

    Thanks 🙏 you sir I really appreciate it finally my doubts is cleared thank u god bless u sir

  • @Allison000
    @Allison000 2 ปีที่แล้ว

    Great video - super helpful!! Thank you for sharing.

  • @paulineeguia3212
    @paulineeguia3212 3 ปีที่แล้ว +2

    Are computer functions the same concept with math functions, relating parameter( input) and argument( output)?

  • @muhammadjonhabibov3569
    @muhammadjonhabibov3569 3 ปีที่แล้ว

    Thank you a lot. it is helped me to understand the javascript function.

  • @emmanuelgutman8046
    @emmanuelgutman8046 2 ปีที่แล้ว

    This cleared my mind so well, cheers man !!!

  • @crimson797
    @crimson797 3 ปีที่แล้ว

    I'm not sure if its the language that may have gotten updated but when I did the exact same code you did in p5* the to name (name and last name) came together and I couldn't find solution you know why.

  • @manamiemyr
    @manamiemyr ปีที่แล้ว

    question!: but how does the console know that the argument 'John' is a (name). Do you not need to declare anything prior to logging it onto the console??? is the parameter arbitrary? can you replace it with e.g. greet(pizza)??

  • @whyfoo
    @whyfoo ปีที่แล้ว

    thank you , very much appreciated

  • @BenjiJediMaster
    @BenjiJediMaster 3 ปีที่แล้ว

    Wow. Just wow. This is a like and a sub, I just started learning programming and I feel like I’ll come here often.

  • @VHTrayanov
    @VHTrayanov 6 ปีที่แล้ว +3

    Mosh is the BEST, Thank you

  • @Vibrasjiujitsu
    @Vibrasjiujitsu 3 ปีที่แล้ว +4

    You're a legend my dude!

  • @user-jn9nl3sg3c
    @user-jn9nl3sg3c ปีที่แล้ว

    thank you for your help.

  • @FarooqAhmed-jx2ii
    @FarooqAhmed-jx2ii 2 ปีที่แล้ว +1

    Great channel, great tutorial. In-depth, straight and clear!!
    Appreciated ❤️

  • @tycallsky
    @tycallsky 3 ปีที่แล้ว

    Thanks! This made sense. I’d love to see something a little more complex with what functions can provide. Thanks again!

  • @Elena22211
    @Elena22211 2 ปีที่แล้ว

    Thank you for sharing.

  • @debankurbhattacharjee3021
    @debankurbhattacharjee3021 ปีที่แล้ว

    Can anyone tell me that what is the theme used here in VS Code?

  • @tamilarasanr2617
    @tamilarasanr2617 5 ปีที่แล้ว +1

    nice teaching,thank u

  • @sirjcurry2182
    @sirjcurry2182 3 ปีที่แล้ว

    Boom. You nailed it. Thanks Mosh

  • @kidbuu7091
    @kidbuu7091 3 ปีที่แล้ว

    what theme is that on vscode?

  • @Intoadmj
    @Intoadmj 2 ปีที่แล้ว

    You earned yourself a new subscriber Mosh! Good Job!! Wonder if the coder have to input as many arguments as the number of parameters? thank you :)

  • @kidbrave_7673
    @kidbrave_7673 4 ปีที่แล้ว +1

    Great video thank you brotha!.

  • @maniisha7800
    @maniisha7800 2 ปีที่แล้ว +3

    Explained it so well in just 5 min. Lemme tell, this concept was so confusing for me and your 5 min video made it all clear. Subscribed 👍

  • @engjellbakiasi742
    @engjellbakiasi742 ปีที่แล้ว

    you should do longer videos where you explain certain programming languages!

  • @chocolatefudgebrownl
    @chocolatefudgebrownl 3 ปีที่แล้ว

    What is the purpose of the space? in the console log between last name and name?

  • @thekidshn5681
    @thekidshn5681 3 ปีที่แล้ว +1

    🙃🙃🙃I feel relax after getting the point.
    This was one of the most confusing one which you solved for me.

  • @serbanpri
    @serbanpri 2 ปีที่แล้ว

    great explained!

  • @zurriyotbeknabiev1190
    @zurriyotbeknabiev1190 2 ปีที่แล้ว

    Thanks a lot. it was very meaningful video

  • @Zunree1869
    @Zunree1869 ปีที่แล้ว

    Is there any way to extract variables from a function.

  • @kebab4640
    @kebab4640 ปีที่แล้ว

    Thank you sir!

  • @mukhiyax1
    @mukhiyax1 2 ปีที่แล้ว

    Thank you bro.

  • @webylancers5607
    @webylancers5607 2 ปีที่แล้ว +1

    JazakAllah!!.Aameen!!..

  • @marlon82mc
    @marlon82mc 5 ปีที่แล้ว +2

    I get it that you want to show people how core JS works, but why not briefly show that and then move on to how we should be writing it today? I just think that modern JS (ES6+) should be taught up front now instead of people having to search for those lessons specifically. Just my opinion. Please keep the great content coming!

  • @GR_BackingTracks
    @GR_BackingTracks ปีที่แล้ว

    So let me see if I've got this straight...
    A parameter - a unique term typed inside the "function( )" parentheses becomes a variable that is only valid when used within that function itself.
    also @ 3:02 - 'most programmers don't know the difference between a parameter and an argument'.
    This is very helpful. I've been studying JS for a month or so, and I'm trying desperately to find the "aha" moment of calling functions and how they relate to creating actions at specific moments.

  • @oriaburehopeeromhosele883
    @oriaburehopeeromhosele883 4 ปีที่แล้ว

    Can you create a Facebook share button on my site that can latter redirect the user back to my site after they must have complete sharing it?

  • @basil_b_vegan
    @basil_b_vegan ปีที่แล้ว

    Thank you!

  • @abdullahalakus9700
    @abdullahalakus9700 ปีที่แล้ว

    mosh ur best fr ı hope u will hit 3m subs

  • @SchoolyB
    @SchoolyB ปีที่แล้ว

    I really am struggling with functions and methods. I get what they are but the why is my problem. Why do I need to wrote a function saying someone's name is John smith when I can enter it myself?

  • @aliciavegas5287
    @aliciavegas5287 2 ปีที่แล้ว

    for a beginner whats the effecient advice to get more advanced in programming

  • @mypurposetalkshow
    @mypurposetalkshow 2 ปีที่แล้ว

    Thank you so much

  • @Jesusjunkie402
    @Jesusjunkie402 2 ปีที่แล้ว

    Hello, purchased your JavaScript course👍😊

  • @7us
    @7us 4 ปีที่แล้ว +2

    yooo man, thanks a lot

  • @sssheepsoldier6397
    @sssheepsoldier6397 3 ปีที่แล้ว

    this explanation is so simple

  • @mansgoldschmidt1162
    @mansgoldschmidt1162 3 ปีที่แล้ว +1

    Great Video bro!

  • @salahsl3752
    @salahsl3752 4 ปีที่แล้ว +1

    thank you very much

  • @aggyo400
    @aggyo400 7 หลายเดือนก่อน

    love it! 😊

  • @webylancers5607
    @webylancers5607 2 ปีที่แล้ว +1

    Alhamdilillah!!..Aameen!!..

  • @ShehanMadushankaSM
    @ShehanMadushankaSM 11 วันที่ผ่านมา

    Lol i was trying soo hard to learn this for hours ...But sir u did it in just 5 minutes..🙂 thank u sir u are a fgging goat..

  • @mohammadshahbandepaxdljln9883
    @mohammadshahbandepaxdljln9883 ปีที่แล้ว +1

    Wow amazing

  • @henry8388
    @henry8388 4 ปีที่แล้ว

    Thank you sooooooooooooooooo much!

  • @page2_68
    @page2_68 ปีที่แล้ว

    Hello sir, is the course updated? I want to enroll

  • @dawitsolomon4613
    @dawitsolomon4613 2 ปีที่แล้ว

    why do we need the + sign for. a coma will do the trick

  • @triphazard2906
    @triphazard2906 ปีที่แล้ว

    Why don't you end a function declaration with a semicolon?

  • @madrums007
    @madrums007 2 ปีที่แล้ว

    This makes way more sense now