Different ways of defining functions in JavaScript

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

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

  • @StyleTrick
    @StyleTrick 7 лет назад +4

    Thank you Kudvenkat! These videos are extremely helpful!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  7 лет назад +4

      Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/order.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ruclips.net/video/y780MwhY70s/видео.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ruclips.net/user/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

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

    Awesome thank you. The various ways to write a function confused the hell out of me for a long time.
    I know this video is from 2014, but those viewing it today should know that document.write() has security issues and should not be used. Instead, to print the output to the page, use the DOM.
    Specifically, "myVar.innerHTML = `Sum of numbers is: ${sum}`;
    " does the same without the security issues of document.write().

  • @horsegirl505
    @horsegirl505 7 лет назад

    You did an excellent job of explaining these concepts. I even understood them and I'm a beginner in javascript. I like what your doing!

  • @SahilKumar-em9pm
    @SahilKumar-em9pm 7 лет назад

    Thanks Kudvenkat! Videos are very nice. It gave me the confidence to clear any interview. I am learning a lot from your videos but I am not able to use that for practical situations. Like why we need hoisting? I am understanding concept but not getting why and where we use these things in real world

  • @crzle3205
    @crzle3205 6 лет назад

    Thanks Kudvenkat ..this video is very helpful to understand the different ways of defining function JS

  • @sbylk99
    @sbylk99 9 лет назад

    THANK YOU SO MUCH for explaining the third self-invoking function method!!

  • @thomasbutman
    @thomasbutman 9 лет назад +4

    Thanks for another great video, Kudvenkat! One question on your immediately-invoked function expression--I noticed you used the syntax (function(number){...}(5)). On your next slide you used (function(number){...})(5). In one case the function expression is wrapped in parentheses, and then the argument passed to the function follows. In the other case, the entire function expression along with the argument are wrapped in outer parentheses. Do both cases represent valid syntax? Thanks!

  • @dr.omarkabir4531
    @dr.omarkabir4531 3 года назад

    This man is underrated

  • @trumankwong3906
    @trumankwong3906 9 лет назад

    thanks. was able to answer an interview question from watching this.

  • @seanraz
    @seanraz 7 лет назад

    great vid --- really helped clarify the different types of functions

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

    Excellent! Thanks

  • @manojmishra9082
    @manojmishra9082 9 лет назад

    Thanks sir,
    when u r uploading the angular JS tutorials.

  • @AdityaKumar-hb9fi
    @AdityaKumar-hb9fi 6 лет назад +1

    how you are able to debug the code of java script? Which visual studio version you are using sir?

    • @nishthakapur3962
      @nishthakapur3962 6 лет назад +1

      add breakpoint and set browser as Internet explorer. breakpoint will automatically hit after running html code.

  • @sujeetpasi980
    @sujeetpasi980 8 лет назад

    Thank your so much sir for explaining in JavaScript braces does not have any scope

  • @cookiecutter5162
    @cookiecutter5162 7 лет назад

    Could you please tell me how many different types of functions declarations there are in Javascript?

  • @SudeepMakwana
    @SudeepMakwana 9 лет назад

    THanks for video bro .. its helps a lot .. :-) cheers !!!

  • @gabhishek17
    @gabhishek17 9 лет назад

    thanks a lot for you knowledge sharing session.

  • @dgloria
    @dgloria 6 лет назад

    I don't understand this computeFactorial loop. when number reaches 0, it should multiply everything with 0, and all result should be 0. I am totally in darkness with these nested functions. Is it not better regarding readability to put it all in a for loop?
    function computeFactorial( number){
    var result=number;
    for (var counter= number-1; counter>0;counter--)
    {
    result=result*counter;
    }
    return result;
    }
    this works fine for me and I can tell 2 years from now what does it do.

  • @ClaudioNarra
    @ClaudioNarra 8 лет назад +1

    Thank you very much !

  • @yhteensatuma7
    @yhteensatuma7 7 лет назад

    why it shows error when i remove if(number

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

    👍
    thank you

  • @gabhishek17
    @gabhishek17 9 лет назад

    Please continue your example

  • @mahipalkamanchi
    @mahipalkamanchi 9 лет назад

    thank u sir...!

  • @azizas9366
    @azizas9366 7 лет назад

    good job.

  • @braScene
    @braScene 8 лет назад

    Thanks!!

  • @shashwatgupta5716
    @shashwatgupta5716 7 лет назад

    illustrious video

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 9 лет назад

    Thank you

  • @mrswolls
    @mrswolls 6 лет назад

    I'm getting 100. Why is it printing 120?

    • @pastuh
      @pastuh 6 лет назад

      5*4 = 20
      20*3 = 60
      60*2 = 120

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

    baal. Disturbing voice tone.