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 and Step both follow your edits
Loading...
Console
Output will appear here
Visualization
Result
Press Step to watch each line's result appear here
Why?

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