JavaScript - Functions - Return

preview_player
Показать описание
JavaScript tutorial on returning a value from a function
Рекомендации по теме
Комментарии
Автор

What the heck. This was posted 3 years ago and am now barely seeing it!? This was the most basic, YET thorough explanation on a return

JCL-nuge
Автор

A nice simple way to explain the return concept. As a fresher in JS it was very valuable lesson for me. Thanks

rehanmalik
Автор

This is the one. I have a hard time understanding the "why" for using return, and now I'm starting to get the idea. My job is now to test it so I can conclude things by myself, thank you so much!

rheavictor
Автор

After watching many reviews, this was the one for me. I understand it now. Thank you

lorenzejay
Автор

I'm pretty much gonna echo what everyone else has been saying; best tutorial I've found yet. Thank you!

ronkeylinarizini
Автор

I bought a udemy course and the tutor didn't explain return function particularly well. Your explanation just made it so much easier to understand. Thank you very much. You've earned a subscriber.

k.iskandar
Автор

I love you bro. I was literally confused after watching so many tutorials about return because they not straight to the point. But now I understand it, Thank you very much. You earn a new subscriber and you deserve more

ulijibkadelm
Автор

i dont know why you did not get more subcribers
but i understood it very clearly
thank you bro

revanthv
Автор

I 've been struggling to undertstand the concept of return. Your explaination was just what I was looking for. Thank you so much!!! You made it super clear!🤩🤩

yammmaya
Автор

Thank you so much for this video, by far the best explanation I've found on this topic.

rahxephon
Автор

Thank you. I've been looking all over for an answer for this. I just couldn't understand untill watching this.

ThePickleVR
Автор

Thanks you! I was having trouble understanding returns. You made it simple to understand.

beesleyrc
Автор

This was very helpful! I was researching on how return(); works and this answered my questions. Thanks a lot!

cilcil
Автор

I appreciate the way you describe your work! I think this is one of the best beginner friendly channels on youtube!

purple
Автор

Remarkable!! I was stumped that my VS Code couldn’t work with return but now I understand! Mucho gracias

mimiraks
Автор

Crystal clear after 7hours of searching a same concept tanq bro from India:)

shahulz
Автор

Thank you so much for that. I get what the return statement does now. Great explanation!

Garbageprincess
Автор

I actually like it. It sort of makes sense why this function needs a return. Because otherwise it just gets element by ID, but doesnt DO anything with it. It got it and ok it's done. But RETURN, makes sure that it passes this value back, to be used.

function $(X) {return document.getElementById(X)};


BTW, the above function makes sure that if you ever want to get element by ID, all you have to do in your code is write $("anyIdName") and you would have called that function and selected the ID that you want. :) Super useful trick!

millanferende
Автор

Wtf, you're a genius at teaching

toppuanimes
Автор

Thank you. I understand this better now!!! So pumped

dnrevan