๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฅ๐—ฒ๐˜๐˜‚๐—ฟ๐—ป ๐—ฆ๐˜๐—ฎ๐˜๐—ฒ๐—บ๐—ฒ๐—ป๐˜

Functions use return to send values back to you.

Use return for these tasks:

What happens without return?

JavaScript gives you undefined. You get no data.

Skip return if you only print a message to the screen.

Source: https://www.geeksforgeeks.org/javascript/javascript-return-statement/ Optional learning community: https://dev.to/ezhil_abinayak_e38eec8fb/how-the-return-statement-works-in-javascript-7kf