Basic JavaScript #11: return statement

preview_player
Показать описание
This tutorial covers how to work with return statements within functions in javascript and return various values.

Рекомендации по теме
Комментарии
Автор

OMG!! This was exactly what I need to know about return. Perfect! Thank you very much! I subscribed immediately.

ellencosta
Автор

Freakin finally! Some one explains properly function return! \m/

theretroman
Автор

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????

SO-fbef
Автор

I subscribed immediately after watching, it helped. I will make sure to watch out others videos as well.

jeopardyking
Автор

Very clear explanation. I subscribed immediately !

anonymous.youtuber
Автор

Thank you. I finally understand it now

AmandaChoi
Автор

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?

Pinovski
Автор

you put the console.log inside console.log that's why you got undefined 2:00 right

TUFF-FPS
Автор

good video thanks u so much to clear my concepts about return statements.

Siddharathbhardwaj
Автор

It doesnt return undefined for me, is this no longer how it works?

noemil