Skip to content

Commit 4a46176

Browse files
committed
Fix merge conflicts
1 parent 3d0644c commit 4a46176

File tree

12 files changed

+49
-367
lines changed

12 files changed

+49
-367
lines changed

1-js/01-getting-started/1-intro/article.md

Lines changed: 13 additions & 60 deletions
Large diffs are not rendered by default.

1-js/01-getting-started/3-code-editors/article.md

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,21 @@ IDE-ների և «թեթև խմբագրիչներ»-ի հիմնական տարբ
2929

3030
Գործնականում թեթև խմբագրիչները կարող են ունենալ բազմաթիվ հավելումներ (plugins), որոնք կարող են խմբագրիչի հնարավորություններ մեծացնել, այնպես որ թեթև խմբագրիչների և IDE-ների մեջ խիստ տարանջատում չկա:
3131

32-
<<<<<<< HEAD
3332
Հետևյալ խնբագրիչներն արժանի են Ձեր ուշադրությանը.
3433

35-
- [Atom](https://atom.io/) (հասանելի է տարբեր հարթակների համար, անվճար է).
3634
- [Sublime Text](http://www.sublimetext.com) (հասանելի է տարբեր հարթակների համար, վճարովի է).
3735
- [Notepad++](https://notepad-plus-plus.org/) (Windows, անվճար է).
3836
- [Vim](http://www.vim.org/), [Emacs](https://www.gnu.org/software/emacs/).
39-
=======
40-
There are many options, for instance:
41-
42-
- [Sublime Text](https://www.sublimetext.com/) (cross-platform, shareware).
43-
- [Notepad++](https://notepad-plus-plus.org/) (Windows, free).
44-
- [Vim](https://www.vim.org/) and [Emacs](https://www.gnu.org/software/emacs/) are also cool if you know how to use them.
45-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
4637

4738
## Այլ խմբագրիչներ
4839

49-
<<<<<<< HEAD
50-
Վերոնշյալ խմբագրիչները առավել հաճախ կիրառվողներից են: Գոյություն ունեն նաև այլ խմբագրիչներ: Խմբագրիչի (ինչպես մնացած գործիքների) ընտրությունը Ձեր անձնական գործն է և կարող է կախված լինել նախագծից, սովորություններից, կամ անձնական նախընտրություններից:
51-
=======
52-
The editors in the lists above are those that either I or my friends whom I consider good developers have been using for a long time and are happy with.
40+
Վերոնշյալ խմբագրիչները իմ, իմ ընկերների, որվքեր իմ համար լավ ծրագրավորողներ են օգտագործվում են երկար ժանանակ, և մենք գոհ ենք այդ խմբագրիչներով:
5341

54-
There are other great editors in our big world. Please choose the one you like the most.
42+
Ընդհանրապես ասած գոյություն ունեն նաև այլ խմբագրիչներ: Դուք ազատ են ընտրել այն խմբագրիչը, որ ձեզ դուր է գալիս։
5543

56-
The choice of an editor, like any other tool, is individual and depends on your projects, habits, and personal preferences.
44+
Խմբագրիչի (ինչպես մնացած գործիքների) ընտրությունը Ձեր անձնական գործն է և կարող է կախված լինել նախագծից, սովորություններից, կամ անձնական նախընտրություններից:
5745

58-
The author's personal opinion:
46+
Հեղինակի անձնական կարծիքը հետևյալն է.
5947

60-
- I'd use [Visual Studio Code](https://code.visualstudio.com/) if I develop mostly frontend.
61-
- Otherwise, if it's mostly another language/platform and partially frontend, then consider other editors, such as XCode (Mac), Visual Studio (Windows) or Jetbrains family (Webstorm, PHPStorm, RubyMine etc, depending on the language).
62-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
48+
- Frontend նախագծերի համար ես կօգտագործեի [Visual Studio Code](https://code.visualstudio.com/)։
49+
- Հակառակ դեպքում, այլ պլատֆորմների/լեզուների համար կդիտարկիե այլ խմբագրչներ, օրինակ XCode (Mac), Visual Studio (Windows) կամ Jetbrains ընտանիքի խմբագրիչ (Webstorm, PHPStorm, RubyMine, և այլն, կախված լեզվից)։

1-js/02-first-steps/04-variables/3-uppercast-constant/task.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,14 @@ const birthday = '18.04.1982';
1212
const age = someCode(birthday);
1313
```
1414

15-
<<<<<<< HEAD
16-
Այստեղ ունենք `birthday` հաստատունը, որն ամսաթիվ է պարունակում, իսկ `age`-ը հաշվարկվում է `birthday`-ից ինչ-որ ֆուկցիայի միջոցով (մանրամասները նշված չեն հակիրճության համար):
17-
=======
18-
Here we have a constant `birthday` for the date, and also the `age` constant.
15+
Այստեղ ունենք `birthday` հաստատունը, որն ամսաթիվ է պարունակում, և `age` հաստատունը։
1916

20-
The `age` is calculated from `birthday` using `someCode()`, which means a function call that we didn't explain yet (we will soon!), but the details don't matter here, the point is that `age` is calculated somehow based on the `birthday`.
21-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
17+
`age`-ը հաշվարկվում է `birthday`-ից `someCode()`-ի, ինչը նշանակում է ֆունկցիայի կանչի, ինչի մասին դեռ չենք խոսել (բայց շուտով կխոսենք)։ Այստեղ մանրամասները չենք քննարկում հակիրճության համար, կարևորն այն է, որ `age`-ը ինչ-որ կերտ հաշվարկվում է `birthday`-ի հիման վրա:
2218

2319
Ճիշտ կլինե՞ր մեծատառերով գրել `birthday`-ը: Իսկ `age`-ը՞: Կամ գուցե երկու՞սն էլ:
2420

2521
```js
26-
<<<<<<< HEAD
2722
const BIRTHDAY = '18.04.1982'; // սա՞ գրել մեծատառերով
2823

2924
const AGE = someCode(BIRTHDAY); // թե՞ age-ը
30-
=======
31-
const BIRTHDAY = '18.04.1982'; // make birthday uppercase?
32-
33-
const AGE = someCode(BIRTHDAY); // make age uppercase?
34-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
3525
```

1-js/02-first-steps/04-variables/article.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,12 @@ let message = "That"; // SyntaxError: 'message' has already been declared
150150
Այսպիսով՝ մենք պետք է փոփոխականները հայտարարենք մեկ անգամ, այնուհետև օգտագործենք առանց `let` հիմնաբառի:
151151
````
152152

153-
<<<<<<< HEAD
154153
```smart header="Ֆունկցիոնալ լեզուներ"
155-
Հետաքրքիր է իմանալ, որ գոյություն ունեն [ֆունկցիոնալ](https://hy.wikipedia.org/wiki/%D5%96%D5%B8%D6%82%D5%B6%D5%AF%D6%81%D5%AB%D5%B8%D5%B6%D5%A1%D5%AC_%D5%AE%D6%80%D5%A1%D5%A3%D6%80%D5%A1%D5%BE%D5%B8%D6%80%D5%B8%D6%82%D5%B4) ծրագրավորման լեզուներ, օրինակ՝ [Scala](http://www.scala-lang.org/), [Erlang](http://www.erlang.org/), որոնք արգելում են փոփոխականների արժեքների փոփոխությունները:
156-
=======
157-
```smart header="Functional languages"
158-
It's interesting to note that there exist so-called [pure functional](https://en.wikipedia.org/wiki/Purely_functional_programming) programming languages, such as [Haskell](https://en.wikipedia.org/wiki/Haskell), that forbid changing variable values.
159-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
154+
Հետաքրքիր է իմանալ, որ գոյություն ունեն [ֆունկցիոնալ](https://hy.wikipedia.org/wiki/%D5%96%D5%B8%D6%82%D5%B6%D5%AF%D6%81%D5%AB%D5%B8%D5%B6%D5%A1%D5%AC_%D5%AE%D6%80%D5%A1%D5%A3%D6%80%D5%A1%D5%BE%D5%B8%D6%80%D5%B8%D6%82%D5%B4) ծրագրավորման լեզուներ, օրինակ՝ [Haskell](https://en.wikipedia.org/wiki/Haskell), որոնք արգելում են փոփոխականների արժեքների փոփոխությունները:
160155
161156
Նման լեզուներում, երբ արժեքները տեղադրվում են «արկղների» դրանք այլևս փոխել հնարավոր չէ: Եթե անհրաժեշտ է պահել այլ արժեք, լեզուն ստիպում է ստեղծել նոր արկղ (հայտարարել նոր փոփոխական):
162157
163-
<<<<<<< HEAD
164-
Չնայած առաջին հայացքից այդ պահվածքը կարող է տարօրինակ թվալ, բայց այդ լեզուները իրոք օգտագործվում են լուրջ նախագծեր մշակելու համար: Ավելին, կան ոլորտներ (օր.՝ զուգահեռ հաշվարկներ), որտեղ այս սահմանափակումները շահավետ են: Խորհուրդ է տրվում ուսումնասիրել նման ծրագրավորման լեզու (նույնիսկ եթե չեք պատրաստվում օգտագործել) «աշխարհայացք» զարգացնելու համար:
165-
=======
166-
Though it may seem a little odd at first sight, these languages are quite capable of serious development. More than that, there are areas like parallel computations where this limitation confers certain benefits.
167-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
158+
Չնայած առաջին հայացքից այդ պահվածքը կարող է տարօրինակ թվալ, այս լեզուները իրոք օգտագործվում են լուրջ նախագծեր մշակելու համար: Ավելին, կան ոլորտներ (օր.՝ զուգահեռ հաշվարկներ), որտեղ այս սահմանափակումները շահավետ են:
168159
```
169160

170161
## Փոփոխականների անվանումը [#variable-naming]
@@ -206,13 +197,8 @@ let my-name; // գծիկները թույլատրված չեն անուններ
206197
`apple` և `AppLE` անուններով փոփոխականները երկու տարբեր փոփոխականներ են:
207198
```
208199

209-
<<<<<<< HEAD
210200
````smart header="Ոչ լատիներեն տառերը թույլատրված են, բայց խորհուրդ չի տրվում դրանք օգտագործել"
211-
Հնարավոր է օգտագործել ցանկացած լեզվի տառեր, օրինակ՝
212-
=======
213-
````smart header="Non-Latin letters are allowed, but not recommended"
214-
It is possible to use any language, including cyrillic letters, Chinese logograms and so on, like this:
215-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
201+
Հնարավոր է օգտագործել ցանկացած լեզվի տառեր, ներառյալ կիրիլյան տառեր, չինական լոգոգրամներ, և այլն, օրինակ՝
216202
217203
```js
218204
let имя = '...';

1-js/02-first-steps/05-types/article.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,7 @@ alert(age); // «undefined»
225225
226226
## typeof օպերատորը [#type-typeof]
227227
228-
<<<<<<< HEAD
229-
`typeof` օպերատորը վերադարձնում է իր արգումենտի տիպը։ Այն օգտակար է, երբ մենք ուզում ենք մշակել տարբեր տիպերի արժեքները տարբեր կերպով, կամ պարզեպես արագ ստուգման կարիք կա։
230-
=======
231-
The `typeof` operator returns the type of the operand. It's useful when we want to process values of different types differently or just want to do a quick check.
232-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
228+
`typeof` օպերատորը վերադարձնում է իր արգումենտի տիպը։ Այն օգտակար է, երբ մենք ուզում ենք մշակել տարբեր տիպերի արժեքները տարբեր կերպով, կամ պարզապես արագ ստուգում անել
233229
234230
`typeof x`-ի կանչը վերադարձնում է տող, որը պարունակում է տիպի անվանումը․
235231

1-js/02-first-steps/07-type-conversions/article.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ alert(typeof value); // string
3434

3535
## Թվային փոխարկում (Numeric Conversion)
3636

37-
<<<<<<< HEAD
38-
Այլ արժեքից թվի ինքնաբերաբար փոխարկումը տեղի է ունենում մաթեմատիկական ֆունկցիաներում և արտահայտություններում։
39-
=======
40-
Numeric conversion in mathematical functions and expressions happens automatically.
41-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
37+
Մաթեմատիկական ֆունկցիաներում և արտահայտություններում այլ արժեքներիից թվին փոխարկումը տեղի է ունենում ավտոմատ։
4238

4339
Օրինակ՝ երբ բաժանումը `/` կիրառվում է ոչ թվային արժեքների վրա․
4440

@@ -73,13 +69,8 @@ alert(age); // NaN, փոխարկումը ձախողվել է
7369
|-------|-------------|
7470
|`undefined`|`NaN`|
7571
|`null`|`0`|
76-
<<<<<<< HEAD
77-
|<code>true&nbsp;/&nbsp;false</code> | `1` / `0` |
78-
| `string` | Սկզբում և վերջում եղած բացատները հեռացվում են։ Եթե ստացված տողը դատարկ է, արդյունքը դառնում է `0`։ Հակառակ դեպքում, ոչ դատարկ տողից «կարդացվում է» թիվը. Ձախողման դեպքում արդյունքը դառնում է `NaN`։ |
79-
=======
80-
|<code>true&nbsp;and&nbsp;false</code> | `1` and `0` |
81-
| `string` | Whitespaces (includes spaces, tabs `\t`, newlines `\n` etc.) from the start and end are removed. If the remaining string is empty, the result is `0`. Otherwise, the number is "read" from the string. An error gives `NaN`. |
82-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
72+
|<code>true&nbsp;և&nbsp;false</code> | `1` և `0` |
73+
| `string` | Սկզբում և վերջում եղած բացատները (ներառյալ space-ներ, թաբեր `\t`, նոր տողեր `\n`, և այլն) հեռացվում են։ Եթե ստացված տողը դատարկ է, արդյունքը դառնում է `0`։ Հակառակ դեպքում, ոչ դատարկ տողից «կարդացվում է» թիվը։ Ձախողման դեպքում արդյունքը դառնում է `NaN`։ |
8374

8475
Օրինակներ․
8576

@@ -139,11 +130,7 @@ alert( Boolean(" ") ); // բացատը նույնպես true է (ցանկացա
139130
|`undefined`|`NaN`|
140131
|`null`|`0`|
141132
|<code>true&nbsp;/&nbsp;false</code> | `1 / 0` |
142-
<<<<<<< HEAD
143-
| `string` | Եզրերում եղած բացատները անտեսվում են։ Դատարկ տողը դառնում է `0`։ Ձախողման դեպքում ստացվում է `NaN`։ |
144-
=======
145-
| `string` | The string is read "as is", whitespaces (includes spaces, tabs `\t`, newlines `\n` etc.) from both sides are ignored. An empty string becomes `0`. An error gives `NaN`. |
146-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
133+
| `string` | Տողերը կարդացվում են ինչպես կան, եզրերում եղած բացատները (ներառյալ space-ներ, թաբեր `\t`, նոր տողեր `\n`, և այլն) անտեսվում են։ Դատարկ տողը դառնում է `0`։ Ձախողման դեպքում ստացվում է `NaN`։ |
147134
148135
**`Տրամաբանական փոխարկում`** -- Տեղի է ունենում տրամաբանական գործողություններում։ Կարող է իրականացվել `Boolean(value)`-ի միջոցով։
149136

1-js/02-first-steps/08-operators/article.md

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,9 @@
5050
Օրինակ՝
5151

5252
```js run
53-
<<<<<<< HEAD
5453
alert( 5 % 2 ); // 1, 5-ը բաժանած 2-ի մնացորդը
5554
alert( 8 % 3 ); // 2, 8-ը բաժանած 3-ի մնացորդը
56-
=======
57-
alert( 5 % 2 ); // 1, the remainder of 5 divided by 2
58-
alert( 8 % 3 ); // 2, the remainder of 8 divided by 3
59-
alert( 8 % 4 ); // 0, the remainder of 8 divided by 4
60-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
55+
alert( 8 % 4 ); // 0, 8-ը բաժանած 4-ի մնացորդը
6156
```
6257

6358
### Աստիճան բարձրացնել **
@@ -74,11 +69,7 @@ alert( 2 ** 3 ); // 2³ = 8
7469
alert( 2 ** 4 ); // 2⁴ = 16
7570
```
7671

77-
<<<<<<< HEAD
78-
Ինչպես մաթեմատիկայում, այստեղ նույնպես հետևայալ օպերատորը կարող ենք կիրառել ոչ ամբողջ թվերի դեպքում։
79-
=======
80-
Just like in maths, the exponentiation operator is defined for non-integer numbers as well.
81-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
72+
Ինչպես մաթեմատիկայում, այստեղ նույնպես աստիճան բարձրացնելու օպերատորը հասանելի է ոչ ամբողջ թվերի դեպքում ևս։
8273

8374
Օրինակ՝ ½-ի աստիճանը:
8475

@@ -90,11 +81,7 @@ alert( 8 ** (1/3) ); // 2 (power of 1/3 is the same as a cubic root)
9081

9182
## Տողերի միավորումը երկուական +-ով
9283

93-
<<<<<<< HEAD
94-
Եկեք ծանոթանանք JavaScript-ի հնարավորությունների հետ, որոնք հիմքում ընկած է դպրոցական թվաբանությունը։
95-
=======
96-
Let's meet the features of JavaScript operators that are beyond school arithmetics.
97-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
84+
Եկեք ծանոթանանք JavaScript-ի այլ հնարավորությունների հետ։
9885

9986
Սովորաբար, `+` գործողությունը գումարում է թվերը։
10087

@@ -208,32 +195,18 @@ alert( +apples + +oranges ); // 5
208195
| Առաջնահերթություն | Անվանում | Նշան |
209196
|------------|------|------|
210197
| ... | ... | ... |
211-
<<<<<<< HEAD
212-
| 15 | ունար պլյուս | `+` |
213-
| 15 | ունար ժխտում | `-` |
214-
| 14 | աստիճան բարձրացում | `**` |
215-
| 13 | բազմապատկում | `*` |
216-
| 13 | բաժանում | `/` |
217-
| 12 | գումարում | `+` |
218-
| 12 | հանում | `-` |
219-
=======
220-
| 14 | unary plus | `+` |
221-
| 14 | unary negation | `-` |
222-
| 13 | exponentiation | `**` |
223-
| 12 | multiplication | `*` |
224-
| 12 | division | `/` |
225-
| 11 | addition | `+` |
226-
| 11 | subtraction | `-` |
227-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
198+
| 14 | ունար պլյուս | `+` |
199+
| 14 | ունար ժխտում | `-` |
200+
| 13 | աստիճան բարձրացում | `**` |
201+
| 12 | բազմապատկում | `*` |
202+
| 12 | բաժանում | `/` |
203+
| 11 | գումարում | `+` |
204+
| 11 | հանում | `-` |
228205
| ... | ... | ... |
229206
| 2 | վերագրում | `=` |
230207
| ... | ... | ... |
231208

232-
<<<<<<< HEAD
233-
Կարող ենք տեսնել, "ունար պլյուս"-ը ունի `15` գերակայությունը, որը մեծ է քան `12`-ը "գումարում" (երկուական պլյուս)։ Ահա թե ինչու է `"+apples + +oranges"` արտահայտությունում ունար պլյուսը կատարվում նախքան գումարումը։
234-
=======
235-
As we can see, the "unary plus" has a priority of `14` which is higher than the `11` of "addition" (binary plus). That's why, in the expression `"+apples + +oranges"`, unary pluses work before the addition.
236-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
209+
Կարող ենք տեսնել, "ունար պլյուս"-ը ունի `14` գերակայությունը, որը մեծ է քան `11`-ը "գումարում" (երկուական պլյուս)։ Ահա թե ինչու է `"+apples + +oranges"` արտահայտությունում ունար պլյուսը կատարվում նախքան գումարումը։
237210

238211
## Վերագրում
239212

@@ -333,11 +306,7 @@ let n = 2;
333306
334307
n *= 3 + 5; // right part evaluated first, same as n *= 8
335308
336-
<<<<<<< HEAD
337-
alert( n ); // 16 (նախ կատարվում է աջ մասը, նույնն է ինչ n *= 8)
338-
=======
339309
alert( n ); // 16
340-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
341310
```
342311

343312
## Ինկրեմենտ/դեկրեմենտ

0 commit comments

Comments
 (0)