Date Archives March 2017

Filtering Out Empty Strings With Boolean

Recently, I was working on a Code Wars kata called Dubstep. The kata is about a DJ who makes dubstep remixes of songs by adding the word “WUB” around the lyrics of the song. The goal of the kata is to get back the original lyrics by creating a function called songDecoder that takes the dubstep remix string and removes all instances of “WUB”. songDecoder(“WUBWEWUBAREWUBWUBTHEWUBCHAMPIONSWUBMYWUBFRIENDWUB”) “WE ARE THE CHAMPIONS MY…

Read More