A better way to doing if statements in javascript #shorts



Instead of using a large if statement block to set a variable, try using a lookup map instead in javascript. #shorts …