DEV Community

Lakshya Tyagi
Lakshya Tyagi

Posted on

Which method is used to return string in upper case?

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

Top comments (5)

Collapse
 
dibyadarshan8 profile image
Dibyadarshan Rath

1

Collapse
 
lazydeveloper profile image
Shiva

upper()

Collapse
 
pranshuj73 profile image
Pranshu Jha
  1. upper()
Collapse
 
promikecoder2020 profile image
ProMikeCoder2020

1

Collapse
 
sambhavjindalgithub profile image
Sambhav-Jindal-github

upper()