crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1>JavaScript Switch Statement</h1> <script> let red = "red"; let green = "green"; let blue = "blue"; let expression = "red"; switch (expression) { case red: document.write("Color Selected is : red"); break; case green: document.write("Color Selected is : green"); break; case blue: document.write("Color Selected is : blue"); break; default: document.write("This color is not found"); } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KPGgxPkphdmFTY3JpcHQgU3dpdGNoIFN0YXRlbWVudDwvaDE+DQo8c2NyaXB0Pg0KbGV0IHJlZCA9ICJyZWQiOw0KbGV0IGdyZWVuID0gImdyZWVuIjsNCmxldCBibHVlID0gImJsdWUiOw0KbGV0IGV4cHJlc3Npb24gPSAicmVkIjsNCnN3aXRjaCAoZXhwcmVzc2lvbikgew0KICBjYXNlIHJlZDoNCiAgICBkb2N1bWVudC53cml0ZSgiQ29sb3IgU2VsZWN0ZWQgaXMgOiByZWQiKTsNCiAgICBicmVhazsNCiAgY2FzZSBncmVlbjoNCiAgICAgZG9jdW1lbnQud3JpdGUoIkNvbG9yIFNlbGVjdGVkIGlzIDogZ3JlZW4iKTsNCiAgICBicmVhazsNCiAgY2FzZSBibHVlOg0KICAgIGRvY3VtZW50LndyaXRlKCJDb2xvciBTZWxlY3RlZCBpcyA6IGJsdWUiKTsNCiAgICBicmVhazsNCiAgZGVmYXVsdDoNCiAgICAgZG9jdW1lbnQud3JpdGUoIlRoaXMgY29sb3IgaXMgbm90IGZvdW5kIik7DQp9DQo8L3NjcmlwdD4NCjwvYm9keT4NCjwvaHRtbD4=