You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/03-strict-mode/article.md
+5-15Lines changed: 5 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,20 +49,13 @@ alert("some code");
49
49
50
50
```
51
51
52
-
<<<<<<< HEAD
53
-
## همیشه از "use strict" استفاده کنید
52
+
## کنسول مرورگر
54
53
55
-
ما همچنان باید به آموختن تفاوتهای use strict و default mode ادامه دهیم.
56
-
=======
57
-
## Browser console
54
+
در ادامه کار زمانیکه از کنسول مرورگر خود برای اجرای کدها استفاده میکنید در نظر داشته باشید که این کنسول به طور پیش فرض از `use strict` استفاده نمیکند.
55
+
گاهی اوقات زمانیکه وجود `use strict` تفاوتی ایجاد میکند، استفاده از کنسول مرورگر نتایج اشتباهی به شما خواهد داد.
56
+
حتی اگر از `key:Shift+Enter` برای وارد کردن عبارت `use strict` استفاده نمایید، نتیجه نخواهد داد.
58
57
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` را وارد نمایید :
66
59
67
60
```js
68
61
(function() {
@@ -72,9 +65,6 @@ The reliable way to ensure `use strict` would be to input the code into console
72
65
})()
73
66
```
74
67
75
-
## Always "use strict"
76
-
>>>>>>> 29a3c58d72b8f10f9f1f9ce5cf691d2ab44a9d01
77
-
78
68
در بخشهای بعدی که با قابلیتهای زبان جاوا اسکریپت آشنا میشویم، به تفاوتهای بین strict mode و "default" mode اشاره خواهیم کرد و خواهیم دید که use strict چطور زندگی ما را راحتتر کرده است.
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/06-type-conversions/article.md
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,13 +105,6 @@ alert( '1' + 2 ); // '12' (string to the left)
105
105
106
106
## تبدیل به boolean
107
107
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
-
115
108
تبدیل به boolean آسانترین حالت است.
116
109
117
110
این مورد در عملیات منطقی (مانند عبارات شرطی که با آنها در بخشهای بعدی آشنا خواهیم شد) رخ میدهد. همینطور به صورت مشخص نیز میتوان با فانکشن `Boolean(value)` اینکار را انجام داد.
Copy file name to clipboardExpand all lines: README.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,31 +8,28 @@ This repository hosts the translation of <https://javascript.info> in Persian (F
8
8
This repository hosts the English content of the Modern JavaScript Tutorial, published at [https://javascript.info](https://javascript.info).
9
9
>>>>>>> 29a3c58d72b8f10f9f1f9ce5cf691d2ab44a9d01
10
10
11
+
11
12
**That's how you can contribute:**
12
13
13
14
<<<<<<< HEAD
14
15
- See the [Persian (Farsi) Translate Progress](https://github.com/javascript-tutorial/fa.javascript.info/issues/1) issue.
15
16
- Choose an unchecked article you'd like to translate.
16
17
- Add a comment with the article title to the issue, e.g. `An Introduction to JavaScript`.
17
18
- 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.
19
20
- Fork the repository, translate and send a PR when done.
20
21
- PR title should match article title, the bot will write it's number into the issue.
21
22
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.
25
24
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).
27
26
28
27
**Let others know what you're translating, in message boards or chats in your language. Invite them to join!**
29
28
30
29
🎉 Thank you!
31
30
32
31
Your name and the contribution size will appear in the "About project" page when the translation gets published.
33
32
34
-
If you'd like to join as a maintainer, write us at <https://github.com/javascript-tutorial/en.javascript.info/issues/new>.
35
-
36
33
P.S. The full list of languages can be found at <https://javascript.info/translate>.
0 commit comments