Search
toString() method cannot be called directly on the values. These values need to be assigned to a variable and toString() method should be called on that variable.
toString()
The following code will result in an error: