We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Issue was with Reversing the Array. Looks like it gets confused which array its revering. Wrapping in brackets was not enough. It seems like JS can't sort it correctly for some reason. I checked and every entry is type number so I'm not sure why .sort().reverse() doesn't work and why it needs to be in a bracket.
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
Issue was with Reversing the Array. Looks like it gets confused which array its revering. Wrapping in brackets was not enough. It seems like JS can't sort it correctly for some reason. I checked and every entry is type number so I'm not sure why .sort().reverse() doesn't work and why it needs to be in a bracket.