Skip to content

Commit 59c6193

Browse files
authored
Update task.md
1 parent d3bea6b commit 59c6193

File tree

1 file changed

+5
-5
lines changed
  • 1-js/02-first-steps/13-switch/1-rewrite-switch-if-else

1 file changed

+5
-5
lines changed

1-js/02-first-steps/13-switch/1-rewrite-switch-if-else/task.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1010
switch (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

0 commit comments

Comments
 (0)