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)

pic
Editor guide
Collapse
dibyadarshan8 profile image
Collapse
lazydeveloper profile image
Shiva

upper()

Collapse
pranshujha profile image
Collapse
promikecoder2020 profile image
Collapse
sambhavjindalgithub profile image