JSVerse
Fundamentals / Strings

Strings & Template Literals

Text, methods to reshape it, and expressions embedded inline.

Strings are immutable — every string method returns a new string rather than modifying the original. Template literals (backticks) allow multi-line text and `${expression}` interpolation, which is evaluated and converted to a string automatically.

Codeeditable — Run executes your edits
Loading...
Console
Output will appear here
Visualization
State
Step through — the console panel shows what's happening
Why?

toUpperCase() returns a brand new string. name itself never changes, because strings can't be mutated in place.