const randomHexColorCode = () => {
        let n: string = (Math.random() * 0xfffff * 1000000).toString(16);
        return '#' + n.slice(0, 6);
      };
      
      Typescript language logo

      Random HEX color

      Codiga's TypeScript Recipes

      Generates a random hexadecimal color code.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.