generated from mwc/lab_names
A value is anything that it is what it is, but a
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.
This commit is contained in:
Reference in New Issue
Block a user