Undefined and null concatenation

having trouble here

i don’t understand what is happening with undefined or null in an concatenation

maybe provide a few examples to help clarify

thanks!

concat() method is a good choice when we want to concatenate String objects . The empty String returned by the getNonNullString() method gets concatenated to the result, thus ignoring the null objects