DEV Community

loading...

Which method is used to return string in upper case?

lakshyatyagi24 profile image Lakshya Tyagi ・1 min read

Comment your answer in comment

1. upper()
Enter fullscreen mode Exit fullscreen mode
2. upperCase()
Enter fullscreen mode Exit fullscreen mode
3. uppercase()
Enter fullscreen mode Exit fullscreen mode
4. toUpperCase()
Enter fullscreen mode Exit fullscreen mode

Discussion (5)

Collapse
dibyadarshan8 profile image
Collapse
ckpro profile image
Shiva

upper()

Collapse
pranshuj73 profile image
Collapse
promikecoder2020 profile image
Collapse
sambhavjindalgithub profile image
Forem Open with the Forem app