Question 1 of 5
After
const name = "fox"; the code runs
name.toUpperCase() alone. What happens to
name?
Strings are immutable, same as Python's.
String methods never change the original; they return a new string, so name.toUpperCase() by itself changes nothing. The line that transforms is the line that assigns.
Review this lesson