Functions
What is a Function A function is a block of code that only executes when called. You can supply parameters—data—to a function and a function may return data. Simply put It is a way of letting you define something you do over and over again. So if you have some code that repeats a lot in…