OMG!! This was exactly what I need to know about return. Perfect! Thank you very much! I subscribed immediately.
@theretroman38625 жыл бұрын
Freakin finally! Some one explains properly function return! \m/
@SO-fb4ef3 жыл бұрын
I do not understand. please explain WHAT DOES RETURN DO? 'it returns the value from the function' that means NOTHING to me. what is the point of the code in the curly braces BEFORE 'return'. if you want to 'return' a string, you could just write that string BEFORE 'return', if you want to return a number you could just write that number before 'return'. Return seems absolutely useless to me. why write the code before return, does it do nothing??? what is so special about the code after return????
@joemysterio3 жыл бұрын
If I'm understanding correctly, the return makes the result tangible, so it can then be used in other functions or other things you are coding. If you console.log it, it only gets printed to the console but it's not usable for other parts of your code.
@piyushharne69382 жыл бұрын
@@joemysterio it's funny that after reading 4 articles and watching 3 videos to understand "return', I did not understand, but this single comment made me understand what return actually is 🤣
@anonymous.youtuber4 жыл бұрын
Very clear explanation. I subscribed immediately !
@jeopardyking71874 жыл бұрын
I subscribed immediately after watching, it helped. I will make sure to watch out others videos as well.
@sanjaygowda8109 Жыл бұрын
Need this more❤
@AmandaChoi2 жыл бұрын
Thank you. I finally understand it now
@TUFF-FPS Жыл бұрын
you put the console.log inside console.log that's why you got undefined 2:00 right
@Pinovski2 жыл бұрын
I did not understand a part of the video, why if in the function the parameters are equal to 0, when opening them in console these do not have value 0?
@aimalkhan86982 жыл бұрын
great explanation
@Lordmaryo Жыл бұрын
Well explained
@BudoReflex6 жыл бұрын
Love your style. Cheers
@noemil6036 Жыл бұрын
It doesnt return undefined for me, is this no longer how it works?
@jeopardyking71874 жыл бұрын
thnx bro
@JeffRAX4 жыл бұрын
great video
@Siddharathbhardwaj5 жыл бұрын
good video thanks u so much to clear my concepts about return statements.