Skip to content

Commit 97fa553

Browse files
authored
Update task.md
1 parent 9d20569 commit 97fa553

File tree

1 file changed

+7
-7
lines changed
  • 1-js/02-first-steps/14-function-basics/1-if-else-required

1 file changed

+7
-7
lines changed

1-js/02-first-steps/14-function-basics/1-if-else-required/task.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ importance: 4
22

33
---
44

5-
# Is "else" required?
5+
# "else" é obrigatório?
66

7-
The following function returns `true` if the parameter `age` is greater than `18`.
7+
A função a seguir retorna `true` se o parâmetro `age` é maior que `18`.
88

9-
Otherwise it asks for a confirmation and returns its result:
9+
Caso contrário, pede uma confirmação e retorna seu resultado:
1010

1111
```js
1212
function checkAge(age) {
@@ -15,13 +15,13 @@ function checkAge(age) {
1515
*!*
1616
} else {
1717
// ...
18-
return confirm('Did parents allow you?');
18+
return confirm('Seus pais permitiram?');
1919
}
2020
*/!*
2121
}
2222
```
2323

24-
Will the function work differently if `else` is removed?
24+
A função funcionará diferentemente se `else` for removido?
2525

2626
```js
2727
function checkAge(age) {
@@ -30,9 +30,9 @@ function checkAge(age) {
3030
}
3131
*!*
3232
// ...
33-
return confirm('Did parents allow you?');
33+
return confirm('Seus pais permitiram?');
3434
*/!*
3535
}
3636
```
3737

38-
Is there any difference in the behavior of these two variants?
38+
Existe alguma diferença no comportamento dessas duas variantes?

0 commit comments

Comments
 (0)