Welcome to the Treehouse Community
Looking to learn something new?
What did we do here?
photoHTML += '<a href = "' + photo.link +'" class = "image">';
I don't understand why we needed to concatenate (I don't even see the concatenation there, I'm just repeating what Dave said in the video).
It's really starting to annoy me that these kind of details are not been explained.
Steven Parker216,136 Points
When used with strings, the "+" symbol is the concatenation operator. So that explains where the concatenation is occurring in the example.
The reason for concatenation is to combine all those parts into a single string, which is then added onto the current contents of "photoHTML".