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)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay