Another 4 JavaScript tips for shorter code
This is a continuation to my earlier article : 4 JavaScript tips for shorter code
1. Replace Switch or If-Else with key value pairs
The switch statement and if-else statement evaluates an expression and executes statements associated with that case....
abhinavvp.hashnode.dev3 min read