return
Term side of the Card
Topic: Syntax
Unit title: return
Categories: Syntax, Keyword
Explanation side of the Card
Explanation: The keyword used in functions to end the function's execution and specify the value to be returned. This value is sent back to the place where the function was called. If no value is provided, the function returns `undefined` by default.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 1
Availability: