File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
1-js/02-first-steps/13-switch/1-rewrite-switch-if-else Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- importance : 5
1
+ importancia : 5
2
2
3
3
---
4
4
5
- # Rewrite the "switch" into an "if"
5
+ # Reescribe el "switch" en un "if"
6
6
7
- Write the code using ` if..else ` which would correspond to the following ` switch ` :
7
+ Escribe el código utilizando ` if..else ` que corresponda al siguiente ` switch ` :
8
8
9
9
``` js
10
- switch (browser ) {
10
+ switch (navegador ) {
11
11
case ' Edge' :
12
- alert ( " You've got the Edge!" );
12
+ alert ( " ¡Tienes Edge!" );
13
13
break ;
14
14
15
15
case ' Chrome' :
16
16
case ' Firefox' :
17
17
case ' Safari' :
18
18
case ' Opera' :
19
- alert ( ' Okay we support these browsers too ' );
19
+ alert ( ' Esta bien, soportamos estos navegadores también ' );
20
20
break ;
21
21
22
22
default :
23
- alert ( ' We hope that this page looks ok !' );
23
+ alert ( ' ¡Esperamos que esta página se vea bien !' );
24
24
}
25
25
```
26
26
You can’t perform that action at this time.
0 commit comments