How To Create/Use Functions - JavaScript Essentials

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

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

  • @jessewilliams522
    @jessewilliams522 ปีที่แล้ว +112

    I've been a software engineer for 10+ years...
    I just enjoy seeing how you explain things because it helps me better explain things to non software engineers and my family!

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

      same, always makes it easier for me to teach others as well

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

      What an amazing mindset. Props man

  • @wolfhaize
    @wolfhaize ปีที่แล้ว +18

    I knew how these worked, but the way you explain things just makes it so much easier to understand.

  • @triteraerlangga7917
    @triteraerlangga7917 ปีที่แล้ว +40

    I've been coding for a couple of years and know how it works, yet I still enjoy your videos. One more thing about function, you also can write a default value inside the parameter.
    function sum(a = 0, b = 0) {
    return a + b;
    }
    so, it always returns a "value" even though you are not putting any argument

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

      can it be a string ?

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

      @redfoxethealgerian9598 Yes, you can.. you can put any default value, primitive, object, or even a function

  • @null_spacex
    @null_spacex ปีที่แล้ว +93

    *me who has been writing JavaScript for 2+ years*: ah yes, interesting

  • @ZahryD
    @ZahryD ปีที่แล้ว +44

    I was just learning functions from Udemy and then got hit by alert on youtube on your video lol. Thank you.

  • @andrewmcgivney7606
    @andrewmcgivney7606 26 วันที่ผ่านมา

    This helped so much. I was at a point where I knew of all the seprate parts, but this video really helped me understand how it all comes together and why it works. Life saver

  • @FlockofSmeagles
    @FlockofSmeagles 3 หลายเดือนก่อน +5

    This is how programming should be approached. Gaining an understanding. Rather than doing things by rote.

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

    the younger version of me thanks you a lot, the new gen of coders seen this video will thank you a lot Kyle. the true wisdom is in explaining the simple...someone wise once said...

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

    Currently going through TOP foundation of JavaScript and your video is super helpful! Thank you.

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

    Wow, I finally got functions! Thank you so much ❤! can you do more short tuts on other fundamentals like Arrays and Objects! I'm super grateful 🙏🏼

  • @tayyabgoose
    @tayyabgoose 19 วันที่ผ่านมา

    I already knew about functions but I still watched this video because of how enjoyable Kyle's videos are

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

    Thank You So Much for this wonderful video....................🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

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

    Hey dev, I am from Pakistan, you might not know about me and my country But I really appreciate your efforts and the way you define all the very basic things in a very simple and tremendous way, keep it up and thanks alot.

  • @loopylibby
    @loopylibby 6 หลายเดือนก่อน

    Thank you for this! I have struggled to understand JS for so long - HTML and CSS i flew through, but JS I keep getting stumped on. This really cleared a lot of it up. :)

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

    You explain things so well. Can you make a video for loops and when/how to use the different kinds

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

    Your teaching is amazing, realy clean

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

    Kyle Bravo! Nice video. Most impressed that you used the correct words "parentheses" and "Curley braces" LOL Using correct words helps beginners remember concepts. 🙂

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

      Strictly speaking, "curley braces" is redundant. Braces are curley by definition. Just as brackets ([]) are square by definition. So we can say "braces" and "brackets" without qualifications.

  • @phrasekim
    @phrasekim 11 หลายเดือนก่อน

    I got the concept of function and why we use it.
    Thanks a lot!

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

    I love your channel. Although this video was targeting beginners more I still enjoyed revisiting foundations

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

    Damn! Thanks for this video. Function has been kicking my butt for 2 days now. And I happened upon this video and now it all makes sense. Damn

  • @cagedbird7173
    @cagedbird7173 10 หลายเดือนก่อน

    Very helpful video! Can’t believe how simple you were able to explain it.

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

    Excellent description, presentation and content. Champion! Came looking for a good explanation, because the official linked-in course was quite confusing. Keep up the good work.

  • @givikokakhetelidze8563
    @givikokakhetelidze8563 5 หลายเดือนก่อน +1

    Where can I get a course by this guy only, like exactly this dude.

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

    You are a king. Thank you for this!

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

    Happy belated bday 🎉, Kyle.

  • @DanielMac-q6e
    @DanielMac-q6e 2 หลายเดือนก่อน

    your voice is so soothing btw.

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

    Thanks for the vid! Timely and needed.
    Nice guitar.

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

    I've always been confused about returning values and this helped alot

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

    I love the brief and understandable explanation

  • @MSSPG
    @MSSPG 8 หลายเดือนก่อน

    I looked at a presentation with functions, and understood NOTHING, after watching this I looked at it again and could confidently explain EVERYTHING 10/10

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

    Best video in store for JavaScripters.

  • @cabdicasiiscabdullahi3552
    @cabdicasiiscabdullahi3552 2 หลายเดือนก่อน +1

    Thank you so much

  • @DeftDodo
    @DeftDodo 6 หลายเดือนก่อน

    Functions are super important for Javascript! We know it!

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

    So helpful. Thank you

  • @jonathanswift8736
    @jonathanswift8736 10 หลายเดือนก่อน

    Thanks alot Kyle 🎉🎉

  • @kingwesleyXIV
    @kingwesleyXIV 8 หลายเดือนก่อน

    You sir.... Are the best ❤

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

    Love these kinds of video as they are good as a recap...

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

    Nice one! Next step would be closures :-)

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

    Nice video Kyle! Have a good day too. 👍

  • @raphaelkamau4711
    @raphaelkamau4711 2 หลายเดือนก่อน

    It was helpful ☺️

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

    amazing content, keep it up :D

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

    Love your videos! Thanks so much.

  • @TheDessycha
    @TheDessycha 11 หลายเดือนก่อน

    you saved my life

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

    Can you do a video about Redux? I like the way you explain things the most

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

    Thanks Kyle as always! 👍

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

    Good video, wish this was out when I was doing my bootcamp cuz for some reason the parameters weren't clicking for me

  • @pixelboatstudios4840
    @pixelboatstudios4840 4 หลายเดือนก่อน

    Really helpful.

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

    I just want to say happy belated birthday 🎂

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

    Thanks for another great video, Kyle. I've learned so much just watching your videos and trying it out in my own code, please keep it going, man!

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

    This good stuff mayne

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

    Thank you for this.

  • @amra.haleem5175
    @amra.haleem5175 ปีที่แล้ว

    جزاك الله خيراً

  • @sammarayash-j2n
    @sammarayash-j2n 5 หลายเดือนก่อน

    thanks so much it was helpfull :))))))))))

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

    Thanks bro

  • @beatsbyzayy
    @beatsbyzayy 6 หลายเดือนก่อน

    Amazing video

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

    loved this

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

    I'm literally just learning OOP in PHP and im glad to know that JS also has this, so i have the idea if i'll learn this later in JS class

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

      Almost all programming languages have functions

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

      @@internetexplorer7880 I do know now, i just started couple months ago with basic web dev, now I'm learning PHP and JS but just the basic first like DOM

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

      goodluck to your endeavours

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

      @@daleryanaldover6545 Awww thank you, you too. it's rare to find nice people on internet, i usually get bullied lol

    • @raven.4815
      @raven.4815 ปีที่แล้ว

      Hey! Good luck out there!

  • @altzkeira
    @altzkeira 5 หลายเดือนก่อน +1

    PLEASE SOMEONE EXPLAIN THIS TO ME😢😢😢😢😢
    It keeps saying type error:document.getelementbyId is not a function(In 'document.getelementbyId("mycheckbox")',document.getelementbyId'is undefined)

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

    @WebDevSimplified If I get the course, do you show how to setup Visual Studio for live editing like you have yours?

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

    This is very helpful with the basics of how functions are born, but 7:43 and the next 8 seconds don't seem logical or explanatory to me:
    "Return puts the value inside the variable of that function", and yet you're simultaneously highlighting a newly-created variable (const) that is outside of the function you're referencing...

  • @soumelee5661
    @soumelee5661 8 หลายเดือนก่อน

    00:04 Functions are important in JavaScript and learning them can be difficult for beginners
    01:19 Create a function in JavaScript to perform a specific task.
    02:30 A function stores and executes code when called.
    03:40 Functions in JavaScript can take logic and code that is used repeatedly and put it in one place for easy reuse and modification.
    04:49 Passing variables in a function
    06:02 Understanding functions and return values in JavaScript.
    07:12 Using the return keyword in a function
    08:27 console.log is a function in JavaScript
    Crafted by Merlin AI.

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

    Is there a way to use functions oldschool? Like not as objects?

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

    Thanks

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

    Hi There, how your code give results on browser, if you have the video for that please share

  • @NotesandPens-ro9wx
    @NotesandPens-ro9wx ปีที่แล้ว

    I would love if you land on flutter too :)

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

    can you make a vid explaining various types of functions

  • @obinazovibezzz2548
    @obinazovibezzz2548 10 หลายเดือนก่อน

    thanks!!!

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

    Do you have any content about VueJs?

  • @WebDevChallenge-Ethiopia
    @WebDevChallenge-Ethiopia 5 หลายเดือนก่อน +1

    Web Dev Challenge-Ethiopia

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

    hey, greetings could you explore qwik in the near future?

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

    Please create a video on JavaScript Proxy

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

    Arrow function is good or simple function ?

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

    1 more thing you could've covered in this is that instead of return, If you yield, it will run even after it exits.

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

    🙌🏼🙌🏼🙌🏼🙌🏼🙌🏼

  • @fase8729
    @fase8729 9 หลายเดือนก่อน

    Thx

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

    I wonder if this is right video for this audience (regular viewers). It's like watching YT video about how to watch YT video🙂.

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

    am just waiting for the day you will play that guitar in the background

  • @chidinmaojimba
    @chidinmaojimba 4 วันที่ผ่านมา

    Hi,send your udemy,or can I get your full course on Javascript

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

    You should add a BASIC tag to the title, so that advanced users know we can watch it at 1.5 speed.

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

      Annoying creature, u cant figure out by urself? Read the title again.

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

    Sir, I have followed lots of tutorial on javascript but the problem is that I don't know where to add javascript on my projects.

  • @Justin-x106b
    @Justin-x106b 3 หลายเดือนก่อน +1

    Mmm once again can anybody explore me what's the right usage of a return keyword 👉🏻👈🏻??

    • @ZubbyXp
      @ZubbyXp 2 หลายเดือนก่อน

      Used to end a function execution and return a specified value to the caller

    • @Justin-x106b
      @Justin-x106b 2 หลายเดือนก่อน

      @@ZubbyXp got it sir

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

    what is an EXspecially

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

    Video would have been improved by sticking with the sayHi example for passing in parameters before moving over to the sum numbers

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

    ❤❤❤❤india

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

    When he started off the "why use functions" with console.log() I thought he would mention built in functions

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

    Have a tutorial on React Is A Backend Framework Now

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

    I was expecting a 10 minute video to at least mention a single thing about functions that isn't "baby's first function"

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

    is there a react typescript tutorial? or something more advanced ?

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

      Yes he has projects with react + TS like this th-cam.com/video/-ONUyenGnWw/w-d-xo.html

  • @chillguy_uz
    @chillguy_uz 6 หลายเดือนก่อน +1

    I have 15 years experience at java script

    • @hma201
      @hma201 3 หลายเดือนก่อน

      Ehm ...... Good for you ? Gimme some advice,what are you doing now in life ? Don't leave me with just 15yr of experience

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

    Do one one classes

  • @GreyKym
    @GreyKym 2 หลายเดือนก่อน

    started learning javascript from scratch and gotta say this shit is not easy😬😬😂op it gets easier tho cuz i aint givin up

  • @WitchDimension
    @WitchDimension 9 หลายเดือนก่อน

    lol the way he moves his head when he is talking 😂🤣

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

    thought he would include anonymous and self calling funcs

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

    we need advanced tutorial

  • @AntarikshRajkonwar
    @AntarikshRajkonwar 6 หลายเดือนก่อน

    16/6/24 3:21am

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

    Thank you 💛💙

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

    3>

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

    Uiu

  • @anastasiao4036
    @anastasiao4036 8 หลายเดือนก่อน

    Me who's been coding for months but never knew what I was doing was called a function until now because it uses the keyword void in my c++ game mod: ah, yes, I see.

  • @112miecio
    @112miecio ปีที่แล้ว

    bro... slower