Skip to content

Commit 94b1c03

Browse files
translated
1 parent bf851a0 commit 94b1c03

File tree

1 file changed

+6
-6
lines changed
  • 1-js/02-first-steps/10-ifelse/3-sign

1 file changed

+6
-6
lines changed

1-js/02-first-steps/10-ifelse/3-sign/task.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ importance: 2
22

33
---
44

5-
# Show the sign
5+
# Arată semnul
66

7-
Using `if..else`, write the code which gets a number via `prompt` and then shows in `alert`:
7+
Folosind `if..else`, scrieți codul care obține un număr prin `prompt` și apoi îl afișează în `alert`:
88

9-
- `1`, if the value is greater than zero,
10-
- `-1`, if less than zero,
11-
- `0`, if equals zero.
9+
- `1`, dacă valoarea este mai mare decât zero,
10+
- `-1`, dacă este mai mică decât zero,
11+
- `0`, dacă este egală cu zero.
1212

13-
In this task we assume that the input is always a number.
13+
În această sarcină presupunem că intrarea este întotdeauna un număr.
1414

1515
[demo src="if_sign"]

0 commit comments

Comments
 (0)