Basic JavaScript #11: return statement

  Рет қаралды 33,243

Mehul - Codedamn

Mehul - Codedamn

Күн бұрын

Пікірлер: 22
@ellencosta1086
@ellencosta1086 3 жыл бұрын
OMG!! This was exactly what I need to know about return. Perfect! Thank you very much! I subscribed immediately.
@theretroman3862
@theretroman3862 5 жыл бұрын
Freakin finally! Some one explains properly function return! \m/
@SO-fb4ef
@SO-fb4ef 3 жыл бұрын
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????
@joemysterio
@joemysterio 3 жыл бұрын
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.
@piyushharne6938
@piyushharne6938 2 жыл бұрын
@@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.youtuber
@anonymous.youtuber 4 жыл бұрын
Very clear explanation. I subscribed immediately !
@jeopardyking7187
@jeopardyking7187 4 жыл бұрын
I subscribed immediately after watching, it helped. I will make sure to watch out others videos as well.
@sanjaygowda8109
@sanjaygowda8109 Жыл бұрын
Need this more❤
@AmandaChoi
@AmandaChoi 2 жыл бұрын
Thank you. I finally understand it now
@TUFF-FPS
@TUFF-FPS Жыл бұрын
you put the console.log inside console.log that's why you got undefined 2:00 right
@Pinovski
@Pinovski 2 жыл бұрын
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?
@aimalkhan8698
@aimalkhan8698 2 жыл бұрын
great explanation
@Lordmaryo
@Lordmaryo Жыл бұрын
Well explained
@BudoReflex
@BudoReflex 6 жыл бұрын
Love your style. Cheers
@noemil6036
@noemil6036 Жыл бұрын
It doesnt return undefined for me, is this no longer how it works?
@jeopardyking7187
@jeopardyking7187 4 жыл бұрын
thnx bro
@JeffRAX
@JeffRAX 4 жыл бұрын
great video
@Siddharathbhardwaj
@Siddharathbhardwaj 5 жыл бұрын
good video thanks u so much to clear my concepts about return statements.
@renadnasr7091
@renadnasr7091 4 жыл бұрын
thank you sooooooo much :)
@calypteanna417
@calypteanna417 4 жыл бұрын
thanks
@marklongchamps6741
@marklongchamps6741 4 жыл бұрын
THANKS!
@hello-zh3jr
@hello-zh3jr 2 жыл бұрын
you're the shit
Basic JavaScript #12: Scoping
9:34
Mehul - Codedamn
Рет қаралды 3 М.
Basic JavaScript #13: alert/prompt/confirm
4:59
Mehul - Codedamn
Рет қаралды 44 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 76 М.
Basic JavaScript #25: break vs continue vs return
3:42
Mehul - Codedamn
Рет қаралды 4,8 М.
Node.js supports TypeScript now? Deno, Bun, Node.js support explained
9:24
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 143 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 65 М.
Dynamic Programming Marathon (Part 1) | GeeksforGeeks
GeeksforGeeks Practice
Рет қаралды 20
Basic JavaScript #14: Objects
6:28
Mehul - Codedamn
Рет қаралды 2,8 М.
Basic JavaScript #19: Increment Decrement
7:09
Mehul - Codedamn
Рет қаралды 16 М.
Basic JavaScript #17: switch-case
5:15
Mehul - Codedamn
Рет қаралды 2,2 М.
Basic JavaScript #15: Arrays
5:39
Mehul - Codedamn
Рет қаралды 1,5 М.