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");

17th Feb 2017, 6:55 AM
Abhinav
1 Answer
+ 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"); }
17th Feb 2017, 7:03 AM
Kawaii
Kawaii - avatar