TypeScript | TypeScript Functions | Question3

Last Updated :
Discuss
Comments

Which of the following is the correct signature for a function that accepts two parameters of type string and returns a boolean?

(x: string): boolean

(x: boolean): string

(x: number, y: number): boolean

(x: string, y: string): boolean

Share your thoughts in the comments