Skip to content

Commit b7e4056

Browse files
Merge branch 'master' into sync-29a3c58d
2 parents 00e8a41 + 318a451 commit b7e4056

6 files changed

Lines changed: 14 additions & 32 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ The programs in this language are called *scripts*. They can be written right in
2828

2929
از این نظر جاوا اِسکریپت تفاوت زیادی با زبان [جاوا](https://en.wikipedia.org/wiki/Java_(programming_language)) دارد .
3030

31-
32-
33-
**چرا جاوا** **اِسکریپت**
3431

3532

3633

1-js/01-getting-started/3-devtools/article.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ To insert multiple lines, press `key:Shift+Enter`.
6060
## Summary
6161
>>>>>>> 29a3c58d72b8f10f9f1f9ce5cf691d2ab44a9d01
6262
63+
## ورودی چند خطی
64+
65+
معمولا زمانیکه چند خط کد وارد می‌کنیم و سپس `key:Enter` را می‌زنیم، آن کد اجرا می‌شود.
66+
برای ورود چند خط کد و سپس اجرای آنها از کلید `key:Shift+Enter` استفاده نمایید.
67+
6368
## خلاصه
6469

6570
Now we have the environment ready. In the next section, we'll get down to JavaScript.

1-js/02-first-steps/03-strict-mode/article.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,13 @@ alert("some code");
4949

5050
```
5151
52-
<<<<<<< HEAD
53-
## همیشه از "use strict" استفاده کنید
52+
## کنسول مرورگر
5453
55-
ما همچنان باید به آموختن تفاوت‌های use strict و default mode ادامه دهیم.
56-
=======
57-
## Browser console
54+
در ادامه کار زمانیکه از کنسول مرورگر خود برای اجرای کدها استفاده می‌کنید در نظر داشته باشید که این کنسول به طور پیش فرض از `use strict` استفاده نمی‌کند.
55+
گاهی اوقات زمانیکه وجود `use strict` تفاوتی ایجاد می‌کند، استفاده از کنسول مرورگر نتایج اشتباهی به شما خواهد داد.
56+
حتی اگر از `key:Shift+Enter` برای وارد کردن عبارت `use strict` استفاده نمایید، نتیجه نخواهد داد.
5857
59-
For the future, when you use a browser console to test features, please note that it doesn't `use strict` by default.
60-
61-
Sometimes, when `use strict` makes a difference, you'll get incorrect results.
62-
63-
Even if we press `key:Shift+Enter` to input multiple lines, and put `use strict` on top, it doesn't work. That's because of how the console executes the code internally.
64-
65-
The reliable way to ensure `use strict` would be to input the code into console like this:
58+
راه حل قابل اتکا برای این موضوع آن است که به این شکل عبارت `use strict` را وارد نمایید :
6659
6760
```js
6861
(function() {
@@ -72,9 +65,6 @@ The reliable way to ensure `use strict` would be to input the code into console
7265
})()
7366
```
7467

75-
## Always "use strict"
76-
>>>>>>> 29a3c58d72b8f10f9f1f9ce5cf691d2ab44a9d01
77-
7868
در بخش‌های بعدی که با قابلیت‌های زبان جاوا اسکریپت آشنا می‌شویم، به تفاوت‌های بین strict mode و "default" mode اشاره خواهیم کرد و خواهیم دید که use strict چطور زندگی ما را راحت‌تر کرده است.
7969

8070
تا به اینجا کافیست بدانید :

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,6 @@ alert( '1' + 2 ); // '12' (string to the left)
105105

106106
## تبدیل به boolean
107107

108-
The conversion rule:
109-
110-
- Values that are intuitively "empty", like `0`, an empty string, `null`, `undefined`, and `NaN`, become `false`.
111-
- Other values become `true`.
112-
113-
For instance:
114-
115108
تبدیل به boolean آسان‌ترین حالت است.
116109

117110
این مورد در عملیات منطقی (مانند عبارات شرطی که با آنها در بخش‌های بعدی آشنا خواهیم شد) رخ می‌دهد. همینطور به صورت مشخص نیز می‌توان با فانکشن `Boolean(value)` اینکار را انجام داد.
9 Bytes
Binary file not shown.

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,28 @@ This repository hosts the translation of <https://javascript.info> in Persian (F
88
This repository hosts the English content of the Modern JavaScript Tutorial, published at [https://javascript.info](https://javascript.info).
99
>>>>>>> 29a3c58d72b8f10f9f1f9ce5cf691d2ab44a9d01
1010
11+
1112
**That's how you can contribute:**
1213

1314
<<<<<<< HEAD
1415
- See the [Persian (Farsi) Translate Progress](https://github.com/javascript-tutorial/fa.javascript.info/issues/1) issue.
1516
- Choose an unchecked article you'd like to translate.
1617
- Add a comment with the article title to the issue, e.g. `An Introduction to JavaScript`.
1718
- Our bot will mark it in the issue, for everyone to know that you're translating it.
18-
- The comment should only contain the title.
19+
- Your comment should contain only the title.
1920
- Fork the repository, translate and send a PR when done.
2021
- PR title should match article title, the bot will write it's number into the issue.
2122

22-
If you're a maintainer, you can just translate and push, but please check articles as translated in the [issue](https://github.com/javascript-tutorial/fa.javascript.info/issues/1), for others to see that.
23-
24-
If you're just a newcomer, without write access to the repo, please kindly allow maintainers to review and merge your translation.
23+
Please kindly allow maintainers to review and merge or request changes in your translation.
2524

26-
If something's unclear, feel free to ask, make an issue [here](https://github.com/javascript-tutorial/fa.javascript.info/issues/new) or in the [English repo](https://github.com/javascript-tutorial/en.javascript.info/issues/new).
25+
If maintainers do not respond, or if you'd like to become a maintainer, write us at the [main repo](https://github.com/javascript-tutorial/en.javascript.info/issues/new).
2726

2827
**Let others know what you're translating, in message boards or chats in your language. Invite them to join!**
2928

3029
🎉 Thank you!
3130

3231
Your name and the contribution size will appear in the "About project" page when the translation gets published.
3332

34-
If you'd like to join as a maintainer, write us at <https://github.com/javascript-tutorial/en.javascript.info/issues/new>.
35-
3633
P.S. The full list of languages can be found at <https://javascript.info/translate>.
3734

3835
## Structure

0 commit comments

Comments
 (0)