I have an array of strings that looks like this.
['white t-shirt', 'blue jeans', 'red hat', 'brown glasses'...] I need somehow to place those strings in the following text by commas but before the last item instead of a comma, I need to set and. Something like this:
'Your card is including a white t-shirt, blue jeans, red hat and brown glasses you can go to checkout page'
Since I am going to receive those array items from backend I need somehow make the above string generation dynamic. How can be it achieved if possible without a loop?