Convert boolean values to strings 'Yes' or 'No'
Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false.
export const boolToWord = (bool: boolean): string => {
return bool ? "Yes" : "No";
};
func BoolToWord(word bool) string {
if word {
return "Yes"
} else {
return "No"
}
}
Go to Kata