https://tutorial.eyehunts.com/js/how-to-call-a-function-in-switch-case-in-javascript-example-code/
How to call a function in switch case in JavaScript | Example code