๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐Ÿญ๐Ÿฌ๐Ÿญ

Functions are reusable blocks of code. You use them to perform specific tasks. They act as sub-programs.

To create a function, follow these steps:

A function stays idle until you call it. To run it, use the name followed by parentheses.

Learn the difference between parameters and arguments:

Use the return keyword to get a result. It sends a value back to you and stops the function. Always place it at the end of your code.

Source: https://dev.to/kamalesh_ar_6252544786997/functions-in-javascript-with-keywords-lk6