Kyle Schwartz
Kyle Schwartz's Blog

Kyle Schwartz's Blog

Setting Variables Using Switch Statements In JavaScript

Jan 19, 20212 min read

Here is a snippet showing an example of how this would be done. Each animal has a favorite color which we will determine using a switch statement. const animal = "dog"; const color = (()=>{ switch (animal) { case "cat": retur...

Setting Variables Using Switch Statements In JavaScript
Install Docker (Compose) on Oracle Linux 8
My Unnecessary Adventure in (Re)Building a Media Sever
Gitea + Drone CI + Vercel = Gitea Pages
How to Install Drone CI for Gitea
Integrating GitLab CI/CD, Flask, and Heroku