I have the following list and would like to reverse the order of the words not each letter in the word. I currently have this but its reversing each letter and not the order of the words.
JS:
let items = ["Litte Bike, Tall Tree, Toy Car, Fast Car"].toString();
myArray.split("").reverse().join('')
Current output:
raC tsaF ,raC yoT ,eerT llaT ,ekiB ettiL
Desired output:
Bike Litte
Tree Tall
Car Toy
Car Fast
You want to split by the comma first, then split on each word in the new array of items and reverse those.
You don't want to reverse the whole thing.