In this video I'll be taking you step by step in detail how I solved the "Steamroller" challenge in 5 easy steps using javascript on FreeCodeCamp.
This is a great video to practice using regular expressions in your code and the methods that come with it.
The steps I took to complete this challenge are as follows(I go into more detail in the video):
STEP 1
Change array to string
STEP 2
replace empty string with a comma
STEP 3
change back into array
STEP 4
map over all items
STEP 5
run a switch statement for each case