JSFiddle - React, Tailwind, and code Playground JavaScript var x = 0; switch(x){ case 0: var y = 1; alert(y); }