What is Function In Programing?
Category: Programming
1Definition
A reusable block of code that performs a specific task and can be called from other code.
2Context
Fundamental building block of programming. Enables code reuse and organization.
3Example
A calculateTax function takes income as input and returns the tax amount.
⚠Common Trap
Functions should do one thing well—large functions are harder to maintain and test.
Related Terms
More Programming Terms
Look up any term instantly
Get clear definitions without the jargon
Try WhatIsIt.ai