Is it more readable? Debatable.

I'd argue that switch statements are logically unordered (though the JS engine will execute them in-order), so that it should be possible to rearrange the order of the cases and not have behaviour change. The list of `if` statements explicitly specify both logic and the order of that logic.

Will it works? Nope :smile: 

Look at line 14 - it lower cases the attribute value (because, True and TRUE are valid values). You can't do that in the switch statement because the value could be undefined.