Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
'String result' is a variable declaration that creates a reference to a String object and gives it the name "result". This allows us to store the return value of the 'capitalize' method in the 'result' variable.