Ad
  • Custom User Avatar

    This is the initial code for TS:

    export const likes = (a : string[]) : string => {
      // TODO
    }
    

    You removed the output type, not a kata issue.

  • Custom User Avatar

    My code seems fine but when I run it, this statement is returned:

    TSError: ⨯ Unable to compile TypeScript: test.ts:32:11 - error TS2322: Type 'string | undefined' is not assignable to type 'string'. Type 'undefined' is not assignable to type 'string'. 32 let ue:string = likes(NA)

    I don't have any variable called ue so I think there might be an issue with the test cases.
    Can anyone please help?
    Thanks

  • Custom User Avatar

    same as here...

    :/