Foundation Training Lesson 2 Practice 3: Conversion to String

studio
debug

#1

image

Taking into account that the testList variable is an array of strings, why is it necessary to convert to string an item of an array of strings to write its value in the output panel? This item is already a string, isn’t it?

Thanks!


#2

Correct.
Unless the foreach type object has not been set correctly and is left as object.