File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
1-js/02-first-steps/13-switch/1-rewrite-switch-if-else Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,25 @@ importance: 5
22
33---
44
5- # Rewrite the "switch" into an "if"
5+ # Rescrieți instrucțiunea "switch" folosind "if"
66
7- Write the code using ` if..else ` which would correspond to the following ` switch ` :
7+ Folosind ` if..else ` , scrieți codul care ar corespunde următorului ` switch ` :
88
99``` js
1010switch (browser) {
1111 case ' Edge' :
12- alert ( " You've got the Edge!" );
12+ alert ( " Folosiți Edge!" );
1313 break ;
1414
1515 case ' Chrome' :
1616 case ' Firefox' :
1717 case ' Safari' :
1818 case ' Opera' :
19- alert ( ' Okay we support these browsers too ' );
19+ alert ( ' OK, suportăm și aceste browsere ' );
2020 break ;
2121
2222 default :
23- alert ( ' We hope that this page looks ok !' );
23+ alert ( ' Sperăm că această pagină arată bine !' );
2424}
2525```
2626
You can’t perform that action at this time.
0 commit comments