How To Create/Use Functions - JavaScript Essentials

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024

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

  • @jessewilliams522
    @jessewilliams522 Год назад +96

    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 Год назад +2

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

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

      What an amazing mindset. Props man

  • @triteraerlangga7917
    @triteraerlangga7917 Год назад +34

    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

  • @ZahryD
    @ZahryD Год назад +33

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

  • @wolfhaize
    @wolfhaize Год назад +16

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

  • @null_spacex
    @null_spacex Год назад +86

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

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

      Hahaha

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

      😂

    • @jampey
      @jampey 5 месяцев назад

      shut up

    • @t0shii_137
      @t0shii_137 Месяц назад

      As one who began to learn JS couple days ago I can confirm that it's really interesting, even if I understood nothing

    • @null_spacex
      @null_spacex Месяц назад

      @@t0shii_137 haha good luck bro!

  • @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 🙏🏼

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

    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.

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

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

  • @muhammadishaque4818
    @muhammadishaque4818 10 месяцев назад +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 2 месяца назад

    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. :)

  • @stith_pragya
    @stith_pragya 9 месяцев назад +1

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

  • @cagedbird7173
    @cagedbird7173 6 месяцев назад

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

  • @givikokakhetelidze8563
    @givikokakhetelidze8563 Месяц назад

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

  • @ygjt76v0-----
    @ygjt76v0----- Год назад +1

    Your teaching is amazing, realy clean

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

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

  • @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 7 месяцев назад

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

  • @MSSPG
    @MSSPG 4 месяца назад

    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

  • @DeftDodo
    @DeftDodo 2 месяца назад

    Functions are super important for Javascript! We know it!

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

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

  • @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.

  • @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

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

    Happy belated bday 🎉, Kyle.

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

    you saved my life

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

    I love the brief and understandable explanation

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

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

  • @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

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

    Best video in store for JavaScripters.

  • @kingwesleyXIV
    @kingwesleyXIV 4 месяца назад

    You sir.... Are the best ❤

  • @ri3706
    @ri3706 8 месяцев назад

    You are a king. Thank you for this!

  • @saramahamed7343
    @saramahamed7343 9 месяцев назад +1

    So helpful. Thank you

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

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

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

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

  • @jonathanswift8736
    @jonathanswift8736 6 месяцев назад

    Thanks alot Kyle 🎉🎉

  • @altzkeira
    @altzkeira Месяц назад +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)

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

    Thanks bro

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

    amazing content, keep it up :D

  • @pixelboatstudios4840
    @pixelboatstudios4840 11 дней назад

    Really helpful.

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

    Nice one! Next step would be closures :-)

  • @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!

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

    Nice video Kyle! Have a good day too. 👍

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

    Please create a video on JavaScript Proxy

  • @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!

  • @amra.haleem5175
    @amra.haleem5175 Год назад

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

  • @user-sh3gh5nh4i
    @user-sh3gh5nh4i Месяц назад

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

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

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

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

    Love your videos! Thanks so much.

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

    Thank you for this.

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

    Thanks Kyle as always! 👍

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

    Thanks

  • @beatsbyzayy
    @beatsbyzayy 2 месяца назад

    Amazing video

  • @Salamaleikum80
    @Salamaleikum80 10 месяцев назад

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

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

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

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

    I just want to say happy belated birthday 🎂

  • @NotesandPens-ro9wx
    @NotesandPens-ro9wx Год назад

    I would love if you land on flutter too :)

  • @4chillingout
    @4chillingout 2 месяца назад +1

    I have 15 years experience at java script

  • @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.

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

    loved this

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

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

  • @fase8729
    @fase8729 5 месяцев назад

    Thx

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

    This good stuff mayne

  • @obinazovibezzz2548
    @obinazovibezzz2548 6 месяцев назад

    thanks!!!

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

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

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

    Have a tutorial on React Is A Backend Framework Now

  • @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🙂.

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

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

  • @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...

  • @WebDevChallenge-Ethiopia
    @WebDevChallenge-Ethiopia Месяц назад +1

    Web Dev Challenge-Ethiopia

  • @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.

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

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

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

    Do you have any content about VueJs?

  • @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.

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

    what is an EXspecially

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

    i always like when he says "eXpecially" . Maybe he started doing it on purpose at this point, i wouldn't be surprised.

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

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

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

      Yes he has projects with react + TS like this ruclips.net/video/-ONUyenGnWw/видео.html

  • @soumelee5661
    @soumelee5661 4 месяца назад

    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.

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

    Do one one classes

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

    thought he would include anonymous and self calling funcs

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

    🙌🏼🙌🏼🙌🏼🙌🏼🙌🏼

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

    we need advanced tutorial

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

    ❤❤❤❤india

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

    3>

  • @WitchDimension
    @WitchDimension 5 месяцев назад

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

  • @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"

  • @anastasiao4036
    @anastasiao4036 4 месяца назад

    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.

  • @AntarikshRajkonwar
    @AntarikshRajkonwar 2 месяца назад

    16/6/24 3:21am

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

    Uiu

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

    wtf

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

    strange to see tutorials like this here lol :D

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

    Thank you 💛💙

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

    Arrow function is good or simple function ?

  • @112miecio
    @112miecio Год назад

    bro... slower

  • @WitchDimension
    @WitchDimension 5 месяцев назад

    Jesus christ, I almost downloaded a 1hour :30minute video to learn this sameconcept thank god I looked for something shorter, only 3 minutes in and already know more about functions than 6 minutes in that damn video 🥲😮‍💨😭I really wish the tech ppl didnt troll with long ahs explanations to things that are like 3 paragraphs worth of explanations