Can I only use the return keyword inside a function body?
Short answer: Yes. return
is a property of a the Function object, and cannot be used outside of a function (since it doesn’t exist as a global property).
Can I only use the return keyword inside a function body?
Short answer: Yes. return
is a property of a the Function object, and cannot be used outside of a function (since it doesn’t exist as a global property).