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/01-getting-started/1-intro/article.md
-19Lines changed: 0 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,7 @@
64
64
65
65
66
66
67
-
<<<<<<< HEAD
68
67
## جاوا اِسکریپت در مرورگر چه تواناییهایی دارد ؟
69
-
=======
70
-
JavaScript's abilities in the browser are limited for the sake of a user's safety. The aim is to prevent an evil webpage from accessing private information or harming the user's data.
71
-
>>>>>>> 6989312841d843f2350803ab552d9082437be569
72
68
73
69
74
70
@@ -90,7 +86,6 @@ JavaScript's abilities in the browser are limited for the sake of a user's safet
90
86
91
87
- اِلِمانهای HTML به صفحه اضافه نماید، محتوای فعلی را تغییر دهد و استایلها را اصلاح کند.
92
88
93
-
<<<<<<< HEAD
94
89
- با کابر در تعامل باشد، و نسبت به کلیکها، فشردن دکمهها و حرکت موس عکسالعمل نشان دهد.
95
90
96
91
- درخواستها مورد نظر را در سطح شبکه ارسال و دریافت کند، فایل آپلود و دانلود کند (که به این نوع تکنولوژیها اصطلاحا [AJAX](https://en.wikipedia.org/wiki/Ajax_(programming)) و [COMET](https://en.wikipedia.org/wiki/Comet_(programming)) گفته میشود)
@@ -156,14 +151,6 @@ JavaScript's abilities in the browser are limited for the sake of a user's safet
156
151
به همین دلیل جاوا اِسکریپت شایعترین ابزار برای ساخت رابطهای کاربری در مرورگرها میباشد.
157
152
158
153
159
-
=======
160
-
```compare
161
-
+ Full integration with HTML/CSS.
162
-
+ Simple things are done simply.
163
-
+ Supported by all major browsers and enabled by default.
164
-
```
165
-
JavaScript is the only browser technology that combines these three things.
166
-
>>>>>>> 6989312841d843f2350803ab552d9082437be569
167
154
168
155
## زبانهایی فراتر از جاوا اِسکریپت
169
156
@@ -204,9 +191,3 @@ JavaScript is the only browser technology that combines these three things.
204
191
- زبانهای مختلفی وجود دارند که به جاوا اِسکریپت تبدیل میشوند تا بتوانند ویژگیهای مشخصی را فراهم کنند. که پیشنهاد میکنیم حداقل یکی از آنها را بعد از تسلط به جاوا اِسکریپت مطالعه نمائید.
205
192
206
193
207
-
<<<<<<< HEAD
208
-
=======
209
-
- JavaScript was initially created as a browser-only language, but it is now used in many other environments as well.
210
-
- Today, JavaScript has a unique position as the most widely-adopted browser language, fully integrated with HTML/CSS.
211
-
- 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.
Copy file name to clipboardExpand all lines: 2-ui/2-events/01-introduction-browser-events/article.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,11 +160,7 @@ button.onclick = sayThanks;
160
160
button.onclick=sayThanks();
161
161
```
162
162
163
-
<<<<<<< HEAD
164
163
اگر که ما پرانتزها را اضافه کنیم تابع `sayThanks()` صدا زده میشود. پس مورد دوم درواقع *خروجی* حاصل از اجرای تابع را، که `undefined` است (چون تابع چیزی را باز نمیگرداند)، به عنوان کنترلکننده به `onclick` اختصاص میدهد، که قاعدتا کار نمیکند.
165
-
=======
166
-
If we add parentheses, then `sayThanks()` becomes a function call. So the last line actually takes the *result* of the function execution, that is `undefined` (as the function returns nothing), and assigns it to `onclick`. That doesn't work.
167
-
>>>>>>> 6989312841d843f2350803ab552d9082437be569
168
164
169
165
...از سوی دیگر، ما در کد HTML به پرانتز ها نیاز داریم:
0 commit comments