Glossary term
What is function? Meaning for developers
A named, reusable block of code. It takes inputs (parameters) and gives back a result with return.
Learn it properly · DSALesson 7: FunctionsPackage a piece of logic, give it inputs and get a result back. The difference between return and console.log, and why every interview answer is a function.