DEV Community

Lakshya Tyagi
Lakshya Tyagi

Posted on

1 2

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()

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay