2 Answers
+ 2
when you write a fonction, you write it and debug it once, and you can reuse it many many times. it saves you time, it is good practice to do so and with good name it makes code easier to read and write.
+ 2
its used for creating custom functions that you can call later and multiple times so in essence they are for time saving and space saving