onclick switch javascript

Learn how to create functions, then add the switch statement within the function.

Learn Javascript function: https://www.w3schools.com/js/js_functions.asp

Learn Switch:https://www.w3schools.com/js/js_switch.asp
unclebigbay