Advertisement
eqeqwan21

Untitled

Dec 21st, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function SwitchState(num) {
  2.     if (num === null)
  3.         return "-";
  4.  
  5.     switch (num) {
  6.         case 8:
  7.             return "ON OFF";
  8.         case 12:
  9.             return "ON ON";
  10.         case 0:
  11.             return "OFF OFF";
  12.         case 4:
  13.             return "OFF ON";
  14.         default:
  15.             return "INVALID";
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement