Q. Which of these methods can be used to convert a string to uppercase?

  • (A) toUpperCase()
  • (B) uppercase()
  • (C) upper()
  • (D) capitalize()
πŸ’¬ Discuss
βœ… Correct Answer: (A) toUpperCase()
Explanation: toUpperCase() returns the calling string converted to uppercase.
Explanation by: Mr. Dubey
toUpperCase() returns the calling string converted to uppercase.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
70
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate