I'm learning JavaScript. Very new and know basic. I'm playing with various options of JavaScript.

I'm comparing a-z (lower case) and A-Z (upper case) from user input. and giving an answer base on the input.

Normally i can do this with this long code:

```
var x = prompt("Enter Your character");
switch (x) {
    case 'a':
    case 'b':
    case 'c':
    case 'd':
    case 'e':
    case 'f':
    case 'g':
    case 'h':
    case 'i':
    case 'j':
    case 'k':
    case 'l':
    case 'm':
    case 'n':
    case 'o':
    case 'p':
    case 'q':
    case 'r':
    case 's':
    case 't':
    case 'u':
    case 'v':
    case 'w':
    case 'x':
    case 'y':
    case 'z':
        document.write("Lower case");
        break;
    case 'A':
    case 'B':
    case 'C':
    case 'D':
    case 'E':
    case 'F':
    case 'G':
    case 'H':
    case 'I':
    case 'J':
    case 'K':
    case 'L':
    case 'M':
    case 'N':
    case 'O':
    case 'P':
    case 'Q':
    case 'R':
    case 'T':
    case 'U':
    case 'V':
    case 'W':
    case 'X':
    case 'Y':
    case 'Z':
        document.write("Upper case");
        break;
    default:
        document.write("It is number");
        break;
}

```

With switch I want to achieve same output but with less code! Something like this:

```
var x = prompt("Enter Your character");
switch(x) {
    case x >= 'a'|| x <= 'z':
        document.write("Lower case");
        break;

    case x >= 'A' || x <= 'Z':
        document.write("Upper case");
        break;

    default:
        document.write("It is number");
        break;
}

```

Any Help?

**Please I want to do this with only switch function. I know i can do this with if/else function but i want to do this with switch. If its not possible with switch let me know :-)**