The Megaphone
Easy+15 XP
Mission Briefing
The Town Crier's voice is giving out, so the Guild has built a magical megaphone. However, it's currently broken and only whispering. You must rewire it to shout everything!
The Concept: String Transformation
The .toUpperCase() method returns a brand new string where all the alphabetic characters have been forcefully converted to UPPERCASE. It does not change the original string.
Example: "hello".toUpperCase(); // Returns "HELLO"
The Objective
Your function receives a string text.
- Convert the entire string to uppercase.
- Return the new, transformed string.
01EXAMPLE 1
Input
text = "hello"Output
"HELLO"Constraints
- Return the transformed string.
FundamentalsStrings
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
text"magic"
Expected Output
MAGIC
Click RUN to test your solution