Gentlemen, how to make the following program using switch on javascript:
<html> <body> <meta charset="utf-8"> <script type="text/javascript"> x = prompt ("Введите балы",""); if ( x >=0 && x <= 40 ){ alert ("Fx отчислен"); } else if ( x >=41 && x <= 59){ alert ("F, На пересдачу!"); } else if ( x >= 60 && x <= 67 ){ alert ("E, 3-"); } else if ( x >= 68 && x <= 74 ){ alert ("D, 3"); } else if ( x >= 75 && x <= 81 ){ alert ("C, 4-"); } else if ( x >= 82 && x <= 90 ){ alert ("B, 4"); } else if ( x >= 91 && x <= 100 ){ alert ("A, 5"); } </script> </body> </html>
We have a dispute! It is on javascript and only with a switch!