DEV Community

Discussion on: When do you create a function or method?

Collapse
 
georgeoffley profile image
George Offley

No, I create them out of habit anyway. However, consciously I know I need to create one whenever I need something that will repeat itself somewhere else.

I also said inheritance error when I think I meant scope error.