Skip to content

Commit 6aa0504

Browse files
committed
Remane [en] version
1 parent 2386da8 commit 6aa0504

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Exercises.md renamed to Exercises.en.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
## Identifiers
44

5-
1. Define variable to store your name.
6-
2. Define constant to store your birth year.
5+
1. Define variable to store your name as a string.
6+
2. Define constant to store your birth year as a number.
77
3. Prepare function to print greeting with single argument.
8-
4. Call function passing value.
8+
4. Call function passing value as literal.
99
5. Call function passing variable.
10+
6. Call function passing constant.
1011

1112
## Loop
1213

@@ -17,9 +18,9 @@
1718

1819
1. Implement function `average` with signature
1920
`average(a: number, b: number): number` calculating average (arithmetic mean).
20-
2. Implement function `square` with signature
21+
2. Implement function `square` with signature
2122
`square(x: number): number` calculating square of x.
22-
3. Implement function `cube` with signature
23+
3. Implement function `cube` with signature
2324
`cube(x: number): number` calculating cube of x.
2425
4. Call functions `square` and `cube` in loop, then pass their results to
2526
function `average`. Print what `average` returns.
@@ -32,13 +33,13 @@ function `average`. Print what `average` returns.
3233
Explain script behaviour.
3334
4. Implement function `createUser` with signature
3435
`createUser(name: string, city: string): object`. Example:
35-
`createUser('Marcus Aurelius', 'Roma')` will return
36+
`createUser('Marcus Aurelius', 'Roma')` will return object
3637
`{ name: 'Marcus Aurelius', city: 'Roma' }`
3738

3839
## Array
3940

4041
1. Define array of objects with two fields: `name` and `phone` (phone book).
41-
Example: `{ name: 'Marcus Aurelius', phone: '+380445555555' }`.
42+
Example: `{ name: 'Marcus Aurelius', phone: '+380445554433' }`.
4243
2. Implement function `findPhoneByName` with signature
4344
`findPhoneByName(name: string): string`. Returning phone from that object
4445
where field `name` equals argument `name`. Use `for` loop for this search.

0 commit comments

Comments
 (0)