Search & Replace

From the FreeCodeCamp Intermediate Algorithms Challenges, here: Perform a search and replace on the sentence using the arguments provided and return the new sentence. First argument is the sentence to perform the search and replace on. Second argument is the word that you will be replacing (before). Third argument is what you will be replacingContinue reading “Search & Replace”

Pig Latin – ‘igpay atinlay’

From the FreeCodeCamp Intermediate Algorithms Challenges, here: Translate the provided string to pig latin. Pig Latin takes the first consonant (or consonant cluster) of an English word, moves it to the end of the word and suffixes an “ay”. If a word begins with a vowel you just add “way” to the end. If a wordContinue reading “Pig Latin – ‘igpay atinlay’”

Spinal Tap Case – spinal-tap-case

From the FreeCodeCamp Intermediate Algorithms Challenges, here: Convert a string to spinal case. Spinal case is all-lowercase-words-joined-by-dashes. FreeCodeCamp – Spinal Tap Case Let’s turn it up to eleven! This was a great problem to learn more about RegEx and just how powerful it can be… Surely like most others attempting this problem, I began byContinue reading “Spinal Tap Case – spinal-tap-case”

Create your website at WordPress.com
Get started