File tree 2 files changed +7
-6
lines changed
1-js/02-first-steps/13-switch/1-rewrite-switch-if-else
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.
4
4
5
5
``` js no-beautify
6
6
if (browser == ' Edge' ) {
7
- alert (" У вас браузер Edge!" );
7
+ alert (" You've got the Edge!" );
8
8
} else if (browser == ' Chrome'
9
9
|| browser == ' Firefox'
10
10
|| browser == ' Safari'
11
11
|| browser == ' Opera' ) {
12
- alert ( ' Мы поддерживаем и эти браузерыo ' );
12
+ alert ( ' Okay we support these browsers too ' );
13
13
} else {
14
- alert ( ' Надеемся, что эта страница выглядит хорошо !' );
14
+ alert ( ' We hope that this page looks ok !' );
15
15
}
16
16
```
17
17
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`
9
9
``` js
10
10
switch (browser) {
11
11
case ' Edge' :
12
- alert ( " У вас браузер Edge!" );
12
+ alert ( " You've got the Edge!" );
13
13
break ;
14
14
15
15
case ' Chrome' :
16
16
case ' Firefox' :
17
17
case ' Safari' :
18
18
case ' Opera' :
19
- alert ( ' Мы поддерживаем и эти браузеры ' );
19
+ alert ( ' Okay we support these browsers too ' );
20
20
break ;
21
21
22
22
default :
23
- alert ( ' Надеемся, что эта страница выглядит хорошо !' );
23
+ alert ( ' We hope that this page looks ok !' );
24
24
}
25
25
```
26
+
You can’t perform that action at this time.
0 commit comments