Learn the fundamental concepts of computer programming
A function is a block of reusable code designed to perform a particular task. A function is executed when something "calls" or "invokes" it.
Functions can accept input values called parameters. When you call the function, the actual data you pass in are called arguments.
Edit the code below and click Run to see the result live.