Fill the blank
// returns the string in all uppercase
function shout(s: string): string {
return s.____();
}
// shout("hi") -> "HI"
Answer: toUpperCase
toUpperCase() converts every character to uppercase.
Play Problem Solving ▸
// returns the string in all uppercase
function shout(s: string): string {
return s.____();
}
// shout("hi") -> "HI"
Answer: toUpperCase