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
This question is part of this quiz :
TypeScript Functions Quiz