I do not want to use Switch in my code, so I\'m looking for some alternative
Example with Switch:
function write(what) { switch(w
Question 2:
Generally, if you can replace custom control structures with a dictionary lookup, you're perfectly fine. It's easy to read and highly elegant -- stick with it.