Dump the if-else, use these short-hand techniques instead.
Have you ever had to write a series of if-else statements and wondered if it could be shorter? Like the code block below, maybe you figured out how to use a shorthand statement but don't fully grasp the context of using them? Well, no need to fear, D...
sublimedev.hashnode.dev
Osinachi Chukwujama
Web developer + Technical Writer
Great tips man. You're doing well.
Though, the lookup table. The final console.log gets executed regardless of the presence of the key in the table.