Skip to content

Commit 2ba2679

Browse files
committed
almost done wirh first article
1 parent d10833e commit 2ba2679

File tree

1 file changed

+38
-41
lines changed

1 file changed

+38
-41
lines changed

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

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -47,82 +47,79 @@ Təbii ki, mühərrikin işi bununla bitmir. Hər bir mərhələdə müəyyən o
4747

4848
## JavaScript brauzer mühitində nələrə qadirdir?
4949

50-
Modern JavaScript is a "safe" programming language. It does not provide low-level access to memory or CPU, because it was initially created for browsers which do not require it.
50+
Müasir JavaScript olduqca təhlükəsiz proqramlaşdırma dilidir. O, ilkin olaraq sadəcə brauzer mühitində işləmək üçün yaradıldığı üçün yaddaşa və ya CPU-ya birbaşa müdaxilə imkanı vermir.
5151

52-
JavaScript's capabilities greatly depend on the environment it's running in. For instance, [Node.js](https://wikipedia.org/wiki/Node.js) supports functions that allow JavaScript to read/write arbitrary files, perform network requests, etc.
52+
Lakin JavaScript-in imkanları onun icra olunduğu mühitdən asılı olaraq dəyişir. Misalçün, [Node.js](https://wikipedia.org/wiki/Node.js) ilə JavaScript faylları oxuya/yaza, şəbəkə sorğuları və s. edə bilər.
5353

54-
In-browser JavaScript can do everything related to webpage manipulation, interaction with the user, and the webserver.
54+
Brauzer daxilində isə, JavaScript web səhifə ilə bağlı demək olar ki, hər şeyi edə bilir.
5555

56-
For instance, in-browser JavaScript is able to:
56+
Bunlara misal olaraq:
5757

58-
- Add new HTML to the page, change the existing content, modify styles.
59-
- React to user actions, run on mouse clicks, pointer movements, key presses.
60-
- Send requests over the network to remote servers, download and upload files (so-called [AJAX](<https://en.wikipedia.org/wiki/Ajax_(programming)>) and [COMET](<https://en.wikipedia.org/wiki/Comet_(programming)>) technologies).
61-
- Get and set cookies, ask questions to the visitor, show messages.
62-
- Remember the data on the client-side ("local storage").
58+
- SƏhifəyə yeni HTML-in əlavə edilməsi və hazırkı kontentin dəyişdirilməsi.
59+
- Mouse klik, key press və s. kimi istifadəçi tərəfindən tətiklənən eventlərə reaksiya vermək.
60+
- Şəbəkə üzərindən sorğular göndərmək, fayllar endirmək, upload etmək ( [AJAX](<https://en.wikipedia.org/wiki/Ajax_(programming)>) [COMET](<https://en.wikipedia.org/wiki/Comet_(programming)>) texnologiyaları vasitəsilə).
61+
- Cookie-lərlə işəmək, ziyarətçilərə müxtəlif mesajlar göstərmək və ya suallar vermək.
62+
- İstifadəçi tərəfdə (client-side) məlumatlar saxlamaq və s.
6363

64-
## What CAN'T in-browser JavaScript do?
64+
Və digər şeyləri göstərmək olar.
6565

66-
JavaScript's abilities in the browser are limited for the sake of the user's safety. The aim is to prevent an evil webpage from accessing private information or harming the user's data.
66+
## Bəs JavaScript brauzer daxilində nələri EDƏ BİLMİR?
6767

68-
Examples of such restrictions include:
68+
İstifadəçinin təhlükəsizliyini təmin etmək üçün, JavaScript-in brauzerdəki funksionallıqları limitlidir.
6969

70-
- JavaScript on a webpage may not read/write arbitrary files on the hard disk, copy them or execute programs. It has no direct access to OS system functions.
70+
Bu cür limitlərə aşağıdakılar daxildir:
7171

72-
Modern browsers allow it to work with files, but the access is limited and only provided if the user does certain actions, like "dropping" a file into a browser window or selecting it via an `<input>` tag.
72+
- Hər hansı bir web səhifədəki JavaScript sizin sərt diskinizdəki ixtiyari faylları yarada, silə, dəyişə və ya icra edə bilməz. Onun sizin əməliyyat sisteminin funksiyalarına bir başa çıxışı yoxdur.
7373

74-
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).
74+
Müasir brauzerlər fayllarla işləməyə imkan yaradır lakin bu əməliyyat `<input>` etiketi vasitəsilə sayta fayl yükləməkdən başqa bir şeyə imkan yaratmır.
7575

76-
- 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).
76+
Bununla bərarbər, brauzer sizə kamera və mikrofon kimi cihazlarlə işləmək imkanı yaradır lakin bu əməliyyatları istifadəçinin bir başa icazəsi olmadan etmək qeyri-mümkündür. Yəni evdə hər hansı bir işlə məşğul olanda kimsə sizi hansısa web səhifədən izləyə bilməz, bunun üçün siz brauzerə icazə verməlisiniz.
7777

78-
This is called the "Same Origin Policy". To work around that, _both pages_ must agree for data exchange and contain a special JavaScript code that handles it. We'll cover that in the tutorial.
78+
- Fərqli pəncərələr və tablar normalda bir-biri haqqında heç nə bilmirlər. Əgər, siz JavaScript-i istifadə edərək, başqa bir pəncərə açsanız, bu halda açdığınız pəncərə və cari pəncərə fərqli mənbələrdəndirsə (fərqli domen adı, fərqli protokol və ya port) bir pəncərənin digər pəncərəyə heç bir çıxışı yoxdur.
7979

80-
This limitation is, again, for the user's safety. A page from `http://anysite.com` which a user has opened must not be able to access another browser tab with the URL `http://gmail.com` and steal information from there.
80+
Bu eyni mənbə siyasəti adlandırılır (Same Origin Policy). Yalnız hər iki səhifə müəyyən protokol üzərindən razılaşdığı halda bir-birinin resurslarından istifadə edə bilərlər.
8181

82-
- JavaScript can easily communicate over the net to the server where the current page came from. But its ability to receive data from other sites/domains is crippled. Though possible, it requires explicit agreement (expressed in HTTP headers) from the remote side. Once again, that's a safety limitation.
82+
Digər mahdudlaşdırmalar kimi, bu da istifadəçinin güvənliyi üçündür. Hər hansı `http://qeyrimüəyyənbirsayt.com` saytı digər pəncərədə açılmış `http://gmail.com` saytından məlumat götürə bilməməlidir. Əks halda halımız yaxşı olmaz.
8383

8484
![](limitations.svg)
8585

86-
Such limits do not exist if JavaScript is used outside of the browser, for example on a server. Modern browsers also allow plugin/extensions which may ask for extended permissions.
87-
`
86+
Bu cür məhdudiyyətlər sadəcə brauzer daxilində mövcuddur, daha öncə də qeyd etdiyimiz kimi JavaScript-in imkanları mühitə görə dəyişir.
8887

89-
## What makes JavaScript unique?
88+
## JavaScript-i unikal edən nədir?
9089

91-
There are at least _three_ great things about JavaScript:
90+
Aşağıdakılar, JavaScript-i unikal edən ən az üç şeydir:
9291

9392
```compare
94-
+ Full integration with HTML/CSS.
95-
+ Simple things are done simply.
96-
+ Support by all major browsers and enabled by default.
93+
+ HTML/CSS ilə tam inteqrasiya.
94+
+ Sadə şeylər sadəliklə icra olunur.
95+
+ Əksər brauzerlər tərəfindən dəstəklənir və defolt olaraq aktivdir.
9796
```
9897

99-
JavaScript is the only browser technology that combines these three things.
98+
Bu üç xüsusiyyəti özündə birləşdirən yegənə texnologiya JavaScript-dir.
10099

101-
That's what makes JavaScript unique. That's why it's the most widespread tool for creating browser interfaces.
100+
Məhz bu səbəbdən, JavaScript unikaldır və ən çox yayılmış proqramlaşdırma dillərindəndir.
102101

103-
That said, JavaScript also allows to create servers, mobile applications, etc.
102+
Yeri gəlmişək, onu da qeyd etmək lazımdır ki, JavaScript ilə mobil tətbiqlər və serverlər də yarada bilərsiniz.
104103

105-
## Languages "over" JavaScript
104+
## JavaScript "üzərində" dillər
106105

107-
The syntax of JavaScript does not suit everyone's needs. Different people want different features.
106+
JavaScript-in sintaksisi hamının ehtiyaclarını ödəmir. Müxtəlif insanlar, müxtəlif funksionallıqlar tələb edir.
108107

109-
That's to be expected, because projects and requirements are different for everyone.
108+
Təbii ki, bu normaldır, çünki layihələr və tələblər hamı üçün fərqlidir.
110109

111-
So recently a plethora of new languages appeared, which are _transpiled_ (converted) to JavaScript before they run in the browser.
110+
Son zamanlarda, JavaScript-ə çevrilən (transpiled) bir çox dillər meydana gəlmişdir. Onlar, yalnız development mühitində fərqli funksionallıqlar irəli sürür lakin, daha sonra brauzerdə işləyə bilmək üçün JavaScript-ə çevrilməlidir.
112111

113-
Modern tools make the transpilation very fast and transparent, actually allowing developers to code in another language and auto-converting it "under the hood".
114-
115-
Examples of such languages:
112+
Belə dillərə nümunə olaraq aşağıdakıları göstərmək olar:
116113

117114
- [CoffeeScript](http://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.
118115
- [TypeScript](http://www.typescriptlang.org/) is concentrated on adding "strict data typing" to simplify the development and support of complex systems. It is developed by Microsoft.
119116
- [Flow](http://flow.org/) also adds data typing, but in a different way. Developed by Facebook.
120117
- [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.
121118

122-
There are more. Of course, even if we use one of transpiled languages, we should also know JavaScript to really understand what we're doing.
119+
Təbii ki, belə dillər daha çoxdur. Lakin bu dilləri başa düşmək üçün əvvəlcə JavaScript-i tam anlamaq şərtdir.
123120

124-
## Summary
121+
## Xülasə
125122

126-
- JavaScript was initially created as a browser-only language, but is now used in many other environments as well.
127-
- Today, JavaScript has a unique position as the most widely-adopted browser language with full integration with HTML/CSS.
128-
- 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.
123+
- JavaScript ilkin olaraq yalnız brauzerlər üçün yaradılmış, lakin sonradan başqa mühitlərdə də istifadə olunmağa başlamışdır.
124+
- Günümüzdə JavaScript HTML və CSS ilə tam inteqrasiya oluna bilər, geniş yayılmış unikal bir proqramlaşdırma dilidir.
125+
- JavaScript-ə çevrilən və yeni funksionallıqlar təqdim edən bir çox dillər mövcuddur. Bu dillərdən bəzilərinə nəzər salmaq tövsiyyə olunur. Misalçün, JavaScript-i tam başa düşdükdən sonra TypeScript-dən başlaya bilərsiniz.

0 commit comments

Comments
 (0)