Q. Which method is used to convert a string to uppercase?

A
toUpper()
B
toUpperCase()
C
upper()
D
convertToUpper()
Solution:

The toUpperCase() method converts all characters in a string to uppercase.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!