DEV Community


Discussion on: Are you using Void correctly?

designpuddle profile image
Chris Bertrand Author

Yes that would be right! The main function call can be either, and it's down to the user to decide which to use. I would recommend it returning an int, but then I think you would have guessed that already 😊