JSFiddle - React, Tailwind, and code Playground

by Mohammed Alozaibi

JavaScript

var sub= prompt("what is your subscription? gold silver titanium");

switch (sub) {
   case "gold":
       alert("your subscription is gold!");
       break;
   case "silver":
       alert("your subscription is silver!");
       break;
   case "titanium":
       alert("your subscription is titanium!");
       break;
       default:
       alert("please refresh to select again")

}