Skip to content

Commit 0de4b5e

Browse files
committed
Merging to sync-0599d07b
1 parent 6fc8255 commit 0de4b5e

File tree

4 files changed

+20
-29
lines changed

4 files changed

+20
-29
lines changed

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# در آمدی بر جاوا اسکریپت
22

3-
<<<<<<< HEAD
4-
5-
=======
3+
@@@needs translation@@@
4+
@@@new part@@@
65
Let's see what's so special about JavaScript, what we can achieve with it, and what other technologies play well with it.
7-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
6+
@@@new part@@@
7+
@@@needs translation@@@
88

99
در اینجا به قابلیت‌های جاوا اِسکریپت، اینکه به واسطه آن چه کارهایی می‌توان انجام داد و چه تکنولوژی‌هایی با آن به خوبی کار می‌کنند، نگاهی می‌اندازیم.
1010

@@ -82,12 +82,15 @@ Let's see what's so special about JavaScript, what we can achieve with it, and w
8282

8383

8484

85-
<<<<<<< HEAD
85+
@@@needs translation@@@
86+
@@@old part@@@
8687
۲. سپس آن را به زبان ماشین ترجمه می‌کند (Compile).
87-
=======
88+
@@@old part@@@
89+
@@@new part@@@
8890
There are ways to interact with camera/microphone and other devices, but they require a user's explicit permission. So a JavaScript-enabled page may not sneakily enable a web-camera, observe the surroundings and send the information to the [NSA](https://en.wikipedia.org/wiki/National_Security_Agency).
8991
- Different tabs/windows generally do not know about each other. Sometimes they do; for example when one window uses JavaScript to open the other one. But even in this case, JavaScript from one page may not access the other if they come from different sites (from a different domain, protocol or port).
90-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
92+
@@@new part@@@
93+
@@@needs translation@@@
9194

9295

9396

@@ -233,10 +236,10 @@ Let's see what's so special about JavaScript, what we can achieve with it, and w
233236

234237
- زبان‌های مختلفی وجود دارند که به جاوا اِسکریپت تبدیل می‌شوند تا بتوانند ویژگی‌های مشخصی را فراهم کنند. که پیشنهاد می‌کنیم حداقل یکی از آنها را بعد از تسلط به جاوا اِسکریپت مطالعه نمائید.
235238

236-
<<<<<<< HEAD
237-
238-
=======
239+
@@@needs translation@@@
240+
@@@new part@@@
239241
- JavaScript was initially created as a browser-only language, but it is now used in many other environments as well.
240242
- Today, JavaScript has a unique position as the most widely-adopted browser language with full integration in HTML/CSS.
241243
- There are many languages that get "transpiled" to JavaScript and provide certain features. It is recommended to take a look at them, at least briefly, after mastering JavaScript.
242-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
244+
@@@new part@@@
245+
@@@needs translation@@@

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,16 @@ alert( "Tea wanted: " + isTeaWanted ); // true
146146
بیتی (bitwise)
147147
عملگرهای بیتی با اعداد صحیح در سطح بیتی (مبنای ۲) کار می‌کنند (و زیاد کاربرد ندارند:). اگر علاقه دارید در مورد این نوع عملگرها بیشتر بدانید به [مستندات موزیلا](mdn:/JavaScript/Reference/Operators/Bitwise_Operators) مراجعه کنید.
148148

149-
<<<<<<< HEAD
149+
@@@needs translation@@@
150+
@@@old part@@@
150151
سه‌تایی (ternary)
151152
تنها عملگری است که سه پارامتر می‌گیرد:: cond ? resultA : result اگر cond مقداری truthy باشد (در تبدیل به بولین معادل true باشد)، مقدار resultA را بر می‌گرداند، در غیر این صورت resultB.
152-
=======
153+
@@@old part@@@
154+
@@@new part@@@
153155
Bitwise
154156
: Bitwise operators work with 32-bit integers at the lowest, bit-level: see the [docs](mdn:/JavaScript/Guide/Expressions_and_Operators#Bitwise) when they are needed.
155-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
157+
@@@new part@@@
158+
@@@needs translation@@@
156159

157160
عملگرهای منطقی (logical)
158161
عملگر «و» (&&): در صورتی که طرف چپ: falsy باشد همان را بر می‌گرداند و در غیر این صورت طرف راست را بر می‌گرداند (در صورت اوّل کلاً طرف راست بررسی نخواهد شد که truthy است یا falsy).

1-js/05-data-types/05-array-methods/8-sort-objects/solution.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
```js run no-beautify
2-
<<<<<<< HEAD
3-
function sortByName(arr) {
4-
arr.sort((a, b) => a.age > b.age ? 1 : -1);
5-
=======
62
function sortByAge(arr) {
73
arr.sort((a, b) => a.age - b.age);
8-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
94
}
105

116
let john = { name: "John", age: 25 };

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# The Modern JavaScript Tutorial in Persian (Farsi)
22

3-
<<<<<<< HEAD
43
This repository hosts the translation of <https://javascript.info> in Persian (Farsi).
5-
=======
6-
This repository hosts the English content of the Modern JavaScript Tutorial, published in [https://javascript.info](https://javascript.info).
7-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
84

95

106
**That's how you can contribute:**
@@ -90,13 +86,7 @@ const text = 'Hola mundo';
9086
document.querySelector('.hola').innerHTML = text;
9187
```
9288

93-
<<<<<<< HEAD
9489
### External Links
95-
=======
96-
- `index.md` stands for a chapter
97-
- `article.md` stands for an article
98-
- `task.md` stands for a task (solution must be provided in `solution.md` file as well)
99-
>>>>>>> 0599d07b3c13ee25f583fc091cead3c17a7e7779
10090

10191
If an external link is to Wikipedia, e.g. `https://en.wikipedia.org/wiki/JavaScript`, and a version of that article exists in your language that is of decent quality, link to that version instead.
10292

0 commit comments

Comments
 (0)