function sayHello(): void {
        console.log('Hello!');
      }
      

      Typescript language logo
      Void function

      Codiga's TypeScript Recipes

      The type void is a little like the opposite of any: the absence of having any type at all.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.