0
Convert into switch case.
varch; if(ch=='A') document.write("Accountant"); else if(ch=='C'||ch=='G') document.write("Grade IV"); else if(ch=='G') document.write("Financial Advisor"); else document.write("Sorry check the value");
1 Respuesta
+ 4
switch(ch) {
    case "A":
        document.write("Accountant");
        break;
    case "C":
        document.write("Grade IV");
        break;
    case "G":
        document.write("Financial Advisor");
        break;
    default:
        document.write("Sorry check the value");
}




