When defining a function with an empty body, how is it more correct to write its code and does the “logic” of the function itself depend on it?
If there is no difference, is there a difference in performance, code readability, etc.?
foo(){} or
foo(){;} And, if not difficult, explain in detail.