So I\'m in this udemy class, and they used a deprecated piece of code below. I realize a switch or if statement would work for this, but I wanted to see if there was something o