width="100" switch(width){ case "99": alert(99); break case "100": alert(100); break case "101": alert(101); break default: alert("smth else") }