How to refactor multiple if statements JavaScript

How to refactor multiple if statements JavaScript

More to explore

Based on this image's title: “How to refactor multiple if statements JavaScript