DEV Community

bin
bin

Posted on

8-A better way to write function

add return type:

if you do not return anything, use void

if a function never returns a value, use never when the function throws an exception or terminate the program.

Top comments (0)