File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
1-js/02-first-steps/13-switch/1-rewrite-switch-if-else Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ For given strings though, a simple `'=='` works too.
44
55``` js no-beautify
66if (browser == ' Edge' ) {
7- alert (" У вас браузер Edge!" );
7+ alert (" You've got the Edge!" );
88} else if (browser == ' Chrome'
99 || browser == ' Firefox'
1010 || browser == ' Safari'
1111 || browser == ' Opera' ) {
12- alert ( ' Мы поддерживаем и эти браузерыo ' );
12+ alert ( ' Okay we support these browsers too ' );
1313} else {
14- alert ( ' Надеемся, что эта страница выглядит хорошо !' );
14+ alert ( ' We hope that this page looks ok !' );
1515}
1616```
1717
Original file line number Diff line number Diff line change @@ -9,17 +9,18 @@ Write the code using `if..else` which would correspond to the following `switch`
99``` js
1010switch (browser) {
1111 case ' Edge' :
12- alert ( " У вас браузер Edge!" );
12+ alert ( " You've got the Edge!" );
1313 break ;
1414
1515 case ' Chrome' :
1616 case ' Firefox' :
1717 case ' Safari' :
1818 case ' Opera' :
19- alert ( ' Мы поддерживаем и эти браузеры ' );
19+ alert ( ' Okay we support these browsers too ' );
2020 break ;
2121
2222 default :
23- alert ( ' Надеемся, что эта страница выглядит хорошо !' );
23+ alert ( ' We hope that this page looks ok !' );
2424}
2525```
26+
You can’t perform that action at this time.
0 commit comments