foo.bar + ''
'' + foo.bar
I would've expected the latter to more reliably coerce the result to a string, but I can't find any discussion of this (after much Googling) nor any example where it seems to matter.
Both are the same.
There is only a difference if there are other
+ (on the left or the right). In other words:
1 + 1 + '' // results in '2'
Is not the same as:
'' + 1 + 1 // results in '11'