I don´t understand what is the the reason of creating the ‘beep’ function in the robotFactory factory function exercise.
I understand that factory function are useful to create objects that have the same properties, but may have different values. But, what is the reason for creating the function and calling it?
Thanks in advance. Link for the exercise below;