0

How to remove specific concatenate elements in an item of an array using js

Supposing i have an array of say 3 items and each item has elements like strings which are concatenated together, how can i use JavaScript to remove maybe 2 of such concatenated elements(strings). https://code.sololearn.com/WsklvbXswER4/?ref=app https://code.sololearn.com/WsklvbXswER4/?ref=app In this code, i want to remove the last two elements that is "and" and the last color of every item in the array.

2nd Aug 2020, 4:37 PM
Kwesi Arthur
Kwesi Arthur - avatar
1 Respuesta
+ 1
give an example!
2nd Aug 2020, 4:41 PM
RKK
RKK - avatar