What are two benefits of defining a function?
1 answer:
The two benefits of defining a function are:
- It keeps code smaller by reducing the number of blocks.
- It can be reused in multiple spots throughout the program.
<h3>What is this function about?</h3>
A function is defined based on the link that exist between a set of inputs having one output each.
Note that a function is simply a relationship that exist between inputs where each input is linked to one specific output.
Therefore, The two benefits of defining a function are:
- It keeps code smaller by reducing the number of blocks.
- It can be reused in multiple spots throughout the program.
Learn more about function from
brainly.com/question/23897143
#SPJ1
You might be interested in
It helps to debug the code. Instead of going through every line of code to find an error, using console.log can tell us where to look.
Software are parts of a computer system that can be seen but not touched.
Hardware are parts of a computer system that can be seen and touched
Answer:
yes but only if you have a backup password
it´s like google sheets, you can organize your school attendance and other stuff