Return Values
The return statement sends a value back from a function.
Basic Return
Loading JavaScript Playground...
Return Ends Function
Loading JavaScript Playground...
No Return = undefined
Loading JavaScript Playground...
Returning Objects and Arrays
Loading JavaScript Playground...
Exercise: Multiply Function
Create a function that returns the product of two numbers:
Loading JavaScript Exercise...
Exercise: Is Even
Create a function that returns true if a number is even:
Loading JavaScript Exercise...
Up next · Lesson 22 of 37
Arrow Functions
1 min read
21 of 37 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

