DEV Community

Cover image for Programming analogies:- Functions
Santosh Shelar
Santosh Shelar

Posted on

Programming analogies:- Functions

Functions:

Picture yourself at a fast-food joint. You tell the cashier what you want (input), and they go back and make your burger (processing), and finally, they give you the burger (output). That's a function – it takes something, does something with it, and gives you something back.

Image description

You can also follow me on X for Guides, Tips & Tricks.

Top comments (0)