the switch statement exercise in js (html doc)