JSFiddle - React, Tailwind, and code Playground

by ClarenceDowns

JavaScript

var roll = 8;

switch (roll) {
  case 8:
    console.log('That\'s not it');
    break;
  case 3:
    console.log('This may be it');
    break;
  default:
    console.log("We didn't find it");
    break;
}