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
44 responses to “Beginner JavaScript Tutorial – 9 – The return Statement”
Love it!
Thanks man, your explanation is very clear ๐ +subscribed and +like
Am still thinking about my complete and utter dislike of coconut!! rofl
Thanks a million Bucky
bucky is the man
Amazing explanation. Thank you!
I just LOVE you!!!
so without the return statement it will return undefined
Hi there! Your tutorials are easy to understand especially for people like us who are beginners. Your teaching technique is awesome breaking it into bits and pieces and is very good for retention of informations. Thanks a lot for your effort for putting this all for a novice like me.
Thanks for sharing your video, I learned. BTW Ivan brought me in here.
put the speed to 1.25 and thank me later
Is return statement important?
good tutorials!
why doesn't this work?
document.write("The sum of "+a+" and "+b+" is " +addNumbers(3,6) );
what if i write
return a+b;
instead?
Why we need return? we can also do addition by simply write as document.write(a+b); ,after that declaring the function name we can do this.so what is the need of return? could u tell me Plz…..
How can I let a user type the numbers dynamically? Like instead of letting the user type in the numbers instead of saving 3 and 6 in the program for addition. A function that adds any number instead of just changing the code each time for new numbers
Awesome video I Had Problems With Functions And Specially With The Return Statement But After Watching This Video Now I Have A Good Understanding And A Clear Idea Of Functions And Their Return Statements Or Whatever They Call It :). Thank You Very Much Bucky
very well done
well said…
the best ever
Alhumdulillah , learning C/C++ wasn't for nothing.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions
text
Thank you Bucky..
how is it different from
function add(a,b){
var c=a+b;
document.write(c);
}
add(4,4);
The 13 dislikes are from his competitors
how can i hack a gmail account with javascript i have seen people do it before, Btw great Video Keep up the good work!! ๐ ๐ ๐
oh wow thank you so much! i finally understand how this is used!!
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.
Python Developers Be Like: I knew this, millions of years ago. ๐
Then why don't you just print it out instead of returning it, and THEN printing it out?
great
What if we want to have multiple return values?
Danke Bucky ๐๐๐๐๐โ๏ธ๐
Your function's result does cleary have something to do with this tutorial (number 9). Very nice tutorials. Thank you.
i am just thinking why you have 13 dislike if this video you made is great and easy to understand?? thumbs up for those people who loves this awesome tutorial! ๐
nai nai nai nai nai
learning javascript is real fun with your wonderful tutorials….thanks!!!
Great tutorial, you make it extremely easy to understand, by breaking it down like that ! Thanks man.
Awesome, thanks!
what kind of software need to install ??
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.
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 ๐