This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doStuff(text) { | |
// Convert the text to lower characters | |
const lowerCased = text.toLocaleLowerCase(); | |
// Split the characters with the space delimeter | |
const words = lowerCased.split(' '); | |
// Reverse split array | |
words.reverse(); |