Replace your endless 'if-else' or 'switch' Javascript statements with Maps
Conditional statements are one of the first concepts you learn. They are convenient for controlling the flow of your code. And every program, from small scripts to large enterprise applications, uses them extensively.