name refers to something else.
For example. your name refers to you,
but you are not the same as your name,
being able to change your name
and staying as the same person.
Variables could be useful in programming when you have to
write a lot of code for a specific thing.
A function is like a variable, as it assigns a name to a block of code,
like how a variable is a name that refers to a value.
Functions can be useful when you have to run a specific code block a lot,
like when you have to draw a triangle 5 times. Instead of writing the
code block 5 times, you can define a function with the triangle code block
and you will only have to write the code block once, and will only have to
write the function 4 more times.
refers to something else. For example, your name refers to you,
but you are not the same as your name,
so you can change your name and still be the same person.
Variables can be useful in programming when you are writing lots of code for a specific value.
Using variables saves time and reduces the amount of clutter when writing lots of code for
the specific value.