What is the role of ! at the end of the capitalize method?
It is the syntax for using capitalize method
It modifies the value stored in the variable
It indicates the termination of string
None of the mentioned
Correct Answer: B — It modifies the value stored in the variable
Explanation:
It is used for modifying the variable.