answersLogoWhite

0

Variables define a certain value, such as an integer, string, boolean value, etc. Functions are defined to run a certain task, and may or may not return a value. You can have a function that calculates the sum of two numbers and returns the sum once calculated.

User Avatar

Wiki User

9y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

Add your answer:

Earn +20 pts
Q: What is the difference between functions and variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp