Use Object Literal Instead If Else Or Switch In Javascript Javascript

Use Object Literal Instead If Else Or Switch In Javascript Javascript