Beginner JavaScript Tutorial – 9 – The return Statement




Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Original source


22 responses to “Beginner JavaScript Tutorial – 9 – The return Statement”

  1. It's easy for me because I already learn about c++ and c and this Javascript is just like them, so if you want to learn Javascript you have to watch the c++ and c playlist to have a background about java and Javascript.

  2. why would you use parameters when variables are better? or am i not understanding parameters right? it seems like its doing the same job as a variable but more convoluted? i have a super basic background in java script so parameters are new to me.

  3. can't you just do:
    function add(a,b) {
         var c = a+b;
         document.write(c);
    }

    add(6,9);

    i dont understand why you need to use the return 🙁 can someone pls help me understand it, thanks 🙂

Leave a Reply