Skip to content

Commit a401ec2

Browse files
committed
merging all conflicts
2 parents f3b5151 + 30a5d5e commit a401ec2

File tree

79 files changed

+405
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+405
-174
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,19 @@ JavaScript-ի գրելաձևը բոլորին չի բավարարում։ Տար
106106

107107
Այսպիսի լեզուների օրինակներ են՝
108108

109+
<<<<<<< HEAD
109110
- [CoffeeScript](http://coffeescript.org/)-ը ունի կարճ գրելաձև, թույլատրելով ծրագրավորողին գրելկ ավելի մաքուր և ճշգրիտ կոդ։ Հիմնականում Ruby-ի ծրագրավորողներն են հավանում այն։
110111
- [TypeScript](http://www.typescriptlang.org/)-ը կենտրոնացած է խիստ տիպերի ներմուծման վրա, հեշտացնելով դժվար համակարգերի ծրագրավորումն ու հետագա ապահովումը։ Այն ստեղծվել է Microsoft-ի կողմից։
111112
- [Flow](http://flow.org/)-ը նույնպես ավելացնում է տվյալների տիպեր, սակայն այլ կերպով է աշխատում։ Ստեղծված է Facebook-ի կողմից։
112113
- [Dart](https://www.dartlang.org/)-ը առանձին լեզու է, որը ունի իր սեփական engine-ը և աշխատում է ոչ-browser-ային միջավայրներում, ինչպես mobile ծրագրերում, սակայն կարող է թարգմանվել JavaScript-ի։ Ստեղծվել է Google-ի կողմից։
114+
=======
115+
- [CoffeeScript](https://coffeescript.org/) is a "syntactic sugar" for JavaScript. It introduces shorter syntax, allowing us to write clearer and more precise code. Usually, Ruby devs like it.
116+
- [TypeScript](https://www.typescriptlang.org/) is concentrated on adding "strict data typing" to simplify the development and support of complex systems. It is developed by Microsoft.
117+
- [Flow](https://flow.org/) also adds data typing, but in a different way. Developed by Facebook.
118+
- [Dart](https://www.dartlang.org/) is a standalone language that has its own engine that runs in non-browser environments (like mobile apps), but also can be transpiled to JavaScript. Developed by Google.
119+
- [Brython](https://brython.info/) is a Python transpiler to JavaScript that enables the writing of applications in pure Python without JavaScript.
120+
- [Kotlin](https://kotlinlang.org/docs/reference/js-overview.html) is a modern, concise and safe programming language that can target the browser or Node.
121+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
113122
114123
Կան ուրիշներ։ Իհարկե, եթե նույնիսկ օգտագործենք թարգմանված լեզուները, պետք է իմանանք JavaScript, որպեսզի հասկանանք՝ ինչ ենք անում։
115124

1-js/01-getting-started/2-manuals-specifications/article.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ JavaScript-ը զարգացող լեզու է, և պարբերաբար նոր հ
2929

3030
Օգտվեք հետևյալ կայքերից՝ տարբեր վեբ զննիչներում և շարժիչներում դրանց հասանելիությունը ստուգելու համար.
3131

32+
<<<<<<< HEAD
3233
- <http://caniuse.com> - հասանելիություն ըստ հնարավորթյունների, օրինակ՝ ցույց է տալիս այն շարժիչները, որոնցում հասանելի են գաղտնագրման ժամանակակից ֆուկցիաները: <http://caniuse.com/#feat=cryptography>:
3334
- <https://kangax.github.io/compat-table> - աղյուսակ է, կազմված լեզվի հնարավորություններից և շարժիչներից, որոնցում այդ հնարավորությունները հասանելի են, կամ հասանելի չեն:
35+
=======
36+
- <https://caniuse.com> - per-feature tables of support, e.g. to see which engines support modern cryptography functions: <http://caniuse.com/#feat=cryptography>.
37+
- <https://kangax.github.io/compat-table> - a table with language features and engines that support those or don't support.
38+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
3439
3540
Բոլոր այս կայքերն օգտակար են առօրյա աշխատանքում, քանի որ տրամադրում են արժեքավոր տեղեկություններ լեզվի հնարավորությունների և դրանց հասանելիության մասին:
3641

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ IDE-ն բեռնում է նախագիծը (որը կարող է պարունակ
1212

1313
IDE-ների օրնակներ են.
1414

15+
<<<<<<< HEAD
1516
- [Visual Studio Code](https://code.visualstudio.com/) (հասանելի է տարբեր հարթակների համար, անվճար է):
1617
- [WebStorm](http://www.jetbrains.com/webstorm/) (հասանելի է տարբեր հարթակների համար, վճարովի է):
18+
=======
19+
- [Visual Studio Code](https://code.visualstudio.com/) (cross-platform, free).
20+
- [WebStorm](https://www.jetbrains.com/webstorm/) (cross-platform, paid).
21+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
1722
1823
Windows-ի համար կա նաև «Visual Studio»-ն, որը տարբերվում է «Visual Studio Code»-ից. «Visual Studio»-ն վճարովի և բազմաֆունկցիոնալ խմբագրիչ է, ստեղծված միայն Windows-ի համար և հարմարեցված .NET հարթակի համար: Ունի նաև [Visual Studio Community](https://www.visualstudio.com/vs/community/) անվճար տարբերակը:
1924

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ let age = 25;
6363
let message = 'Hello';
6464
```
6565

66+
<<<<<<< HEAD
6667
Երբեմն փոփոխականները հայտարարվում են հետևյալ կերպ.
68+
=======
69+
Some people also define multiple variables in this multiline style:
70+
71+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
6772
```js no-beautify
6873
let user = 'John',
6974
age = 25,
@@ -102,7 +107,12 @@ let user = 'John'
102107
103108
Արկղի մեջ կարող ենք դնել ցանկացած արժեք:
104109
110+
<<<<<<< HEAD
105111
Այդ արժեքները կարող ենք փոխել ըստ անհրաժեշտության.
112+
=======
113+
We can also change it as many times as we want:
114+
115+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
106116
```js run
107117
let message;
108118
@@ -260,8 +270,12 @@ myBirthday = '01.01.2001'; // error, can't reassign the constant!
260270
261271
Եթե վստահ եք, որ փոփոխականի արժեքը երբեր չի փոխվի, սահմանեք այն որպես `const` դա ապահովելու և բոլորին այդ փաստն ակնհայտ դարձնելու համար:
262272
273+
<<<<<<< HEAD
263274
264275
### Մեծատառ հաստատուններ
276+
=======
277+
### Uppercase constants
278+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
265279
266280
Ընդունված է օգտագործել հաստատունները դժվար հիշվող արժեքների համար, որոնք հայտնի են նախօրոք:
267281
@@ -290,7 +304,12 @@ alert(color); // #FF7F00
290304
291305
«Հաստատունն» ուղղակի փոփոխական է, որի արժեքը չի փոխվում: Այունամենայնիվ կան հաստատուններ, որոնց արժեքը հայտնի է մինչև սկրիպը գործարկելը (ինչպես, օրինակ, վերոնշյալ գույները) և կան հաստատուններ, որոնց արժեքը հայտնի է դառնում միայն սկրիպտի աշխատանքի ընթացքում և այն չի փոխվում սկզբնական վերագրումից հետո:
292306
307+
<<<<<<< HEAD
293308
Օրինակ՝
309+
=======
310+
For instance:
311+
312+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
294313
```js
295314
const pageLoadTime = /* time taken by a webpage to load */;
296315
```

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Some people prefer `typeof(x)`, although the `typeof x` syntax is much more comm
264264
265265
JavaScript-ում գոյություն ունեն տվյալների 8 տիպեր։
266266
267+
<<<<<<< HEAD
267268
- `number` բոլոր տեսակի թվերի համար․ ամբողջ և տասնորդական, ամբողջ թվերը սահմանափակված են <code>±(2<sup>53</sup>-1)</code> միջակայքում։
268269
- `bigint` կամայական մեծության ամբողջ թվերի համար։
269270
- `string` տողերի համար։ Տողը կարող է պարունակել զրո կամ ավել նիշեր, չկա նիշի համար նախատեսված առանձին տիպ։
@@ -272,6 +273,18 @@ JavaScript-ում գոյություն ունեն տվյալների 8 տիպե
272273
- `undefined` չվերագրված արժեքների համար․ առանձին տիպ է, որը ունի մեկ արժեք՝ `undefined`։
273274
- `object` ավելի բարդ տվյալների կառուցվածքների համար։
274275
- `symbol` չկրկնվող նույնացուցիչների համար։
276+
=======
277+
- Seven primitive data types:
278+
- `number` for numbers of any kind: integer or floating-point, integers are limited by <code>±(2<sup>53</sup>-1)</code>.
279+
- `bigint` for integer numbers of arbitrary length.
280+
- `string` for strings. A string may have zero or more characters, there's no separate single-character type.
281+
- `boolean` for `true`/`false`.
282+
- `null` for unknown values -- a standalone type that has a single value `null`.
283+
- `undefined` for unassigned values -- a standalone type that has a single value `undefined`.
284+
- `symbol` for unique identifiers.
285+
- And one non-primitive data type:
286+
- `object` for more complex data structures.
287+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
275288

276289
`typeof`-ը թույլ է տալիս ստուգել, թե ինչ տիպի արժեք է պահված փոփոխականում։
277290

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Պատասխանը `null` է, քանի որ այն առաջին սխալական արժեքն է։
22

33
```js run
4-
alert( 1 && null && 2 );
4+
alert(1 && null && 2);
55
```
66

1-js/02-first-steps/13-while-for/article.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,24 @@
66

77
*Ցիկլերը* նույն կոդը մի քանի անգամ կրկնելու հնարավորություն են տալիս։
88

9+
<<<<<<< HEAD
910
## "while" ցիկլը
11+
=======
12+
```smart header="The for..of and for..in loops"
13+
A small announcement for advanced readers.
14+
15+
This article covers only basic loops: `while`, `do..while` and `for(..;..;..)`.
16+
17+
If you came to this article searching for other types of loops, here are the pointers:
18+
19+
- See [for..in](info:object#forin) to loop over object properties.
20+
- See [for..of](info:array#loops) and [iterables](info:iterable) for looping over arrays and iterable objects.
21+
22+
Otherwise, please read on.
23+
```
24+
25+
## The "while" loop
26+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
1027
1128
`while` ցիկլը ունի հետևյալ գրելաձևը․
1229

@@ -162,11 +179,14 @@ for (i = 0; i < 3; i++) { // օգտագործվում է գոյություն ո
162179
163180
alert(i); // 3, տեսանելի է, քանի որ հայտարարված է ցիկլից դուրս
164181
```
165-
166182
````
167183

184+
<<<<<<< HEAD
168185

169186
### Մասերի բաց թողում
187+
=======
188+
### Skipping parts
189+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
170190
171191
`for` ցիկլի ամեն մաս կաող է բաց թողնվել։
172192

@@ -286,7 +306,6 @@ if (i > 5) {
286306
287307
...և ձևափոխենք այն օգտագործելով հարցականի նշանը․
288308
289-
290309
```js no-beautify
291310
(i > 5) ? alert(i) : *!*continue*/!*; // continue֊ն թույլատրված չէ այստեղ
292311
```
@@ -320,7 +339,12 @@ alert('Պատրաստ է!');
320339

321340
Ստանդարտ `break`֊ը `input`֊ից հետո կկանգնեցնի միայն ներսի ցիկլը։ Դա բավարար չէ, և այստեղ է, որ պիտակները գալիս են օգնության։
322341

342+
<<<<<<< HEAD
323343
*Պիտակը* դա նույնականացուցիչ (identifier) է վերջակետով ցիկլից առաջ․
344+
=======
345+
A *label* is an identifier with a colon before a loop:
346+
347+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
324348
```js
325349
labelName: for (...) {
326350
...
@@ -342,7 +366,12 @@ labelName: for (...) {
342366
// արժեքի հետ ինչ֊որ գործողություն...
343367
}
344368
}
369+
<<<<<<< HEAD
345370
alert('Պատրաստ է!');
371+
=======
372+
373+
alert('Done!');
374+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
346375
```
347376

348377
Վերևի ծրագրում `break outer`֊ը փնտրում է իրեն ընդգրկող դրսի ցիկլը, որի պիտակը `outer` է, և կանգնեցնում այն։
@@ -361,14 +390,24 @@ for (let i = 0; i < 3; i++) { ... }
361390
````warn header="Պիտակները թույլ չեն տալիս \"ցատկել\" կամայական տեղ"
362391
Պիտակները թույլ չեն տալիս մեզ ցատկել ծրագրի լրիվ այլ հատված։
363392
393+
<<<<<<< HEAD
364394
Օրինակ, անհնար է անել այսպիրի հնարք․
395+
=======
396+
For example, it is impossible to do this:
397+
398+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
365399
```js
366400
break label; // ցատկ ներքևի պիտակին (չի աշխատի)
367401
368402
label: for (...)
369403
```
370404
405+
<<<<<<< HEAD
371406
`break` դիրեկտիվը պետք է լինի պիտակը պարունակող բլոկի ներսում։ Տեխնիկապես կամայական պիտակավորված բլոկի համար կարող ենք անել հետևյալը․
407+
=======
408+
A `break` directive must be inside a code block. Technically, any labelled code block will do, e.g.:
409+
410+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
372411
```js
373412
label: {
374413
// ...

1-js/02-first-steps/18-javascript-specials/article.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,13 @@ JavaScript-ը սպասարկում է հետևյալ օպերատորները.
143143
Վերագրում
144144
: Կա պարզ վերագրում՝ `a = b`, և համակցված վերագրում՝ `a *= 2`։
145145

146+
<<<<<<< HEAD
146147
Բիթային
147148
: Բիթային օպերատորները աշխատում են 32-բիթ ամբողջ թվերի հետ ամենացածր՝ բիթային մակարդակում. տեսեք [դոկումենտացիան](mdn:/JavaScript/Guide/Expressions_and_Operators#Bitwise)-ում, երբ դրա կարիքը լինի:
149+
=======
150+
Bitwise
151+
: Bitwise operators work with 32-bit integers at the lowest, bit-level: see the [docs](mdn:/JavaScript/Guide/Expressions_and_Operators#bitwise_operators) when they are needed.
152+
>>>>>>> 30a5d5e2a7c3504c9afd5028f83f4a696e60aede
148153
149154
Պայմանական
150155
: Միակ օպերատորը երեք պարամետրով՝ `cond ? resultA : resultB`։ Եթե `cond` պայմանը ճշմարիտ է, վերադարձվում է `resultA`, հակառակ դեպքում՝ `resultB`։

1-js/03-code-quality/01-debugging-chrome/chrome-open-sources.svg

Lines changed: 1 addition & 1 deletion
Loading

1-js/03-code-quality/01-debugging-chrome/chrome-sources-breakpoint.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)