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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,17 @@ Ammo, rivojlanish jarayonida, JavaScript [ECMAScript] (http://en.wikipedia.org/w
20
20
21
21
Bugungi kunda JavaScript nafaqat brauzerda, balki serverda yoki aslida [JavaScript interpretatori](https://en.wikipedia.org/wiki/JavaScript_engine) deb nomlangan maxsus dasturga ega bo'lgan har qanday qurilmada ham bajarilishi mumkin.
22
22
23
-
The browser has an embedded engine sometimes called a "JavaScript virtual machine".
23
+
Brauzerlar o'z JavaScript interpretatorlariga ega, ular gohida "JavaScript virtual mashinasi" deb atalanadi.
24
24
25
-
Different engines have different "codenames". For example:
25
+
Har bir interpretatorni o'z nomi mavjud. Masalan:
26
26
27
-
-[V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome and Opera.
28
-
-[SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- in Firefox.
27
+
-[V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- Chrome va Opera brauzerlarida qo'llanadi.
- ...There are other codenames like "Trident" and "Chakra" for different versions of IE, "ChakraCore" for Microsoft Edge, "Nitro" and "SquirrelFish" for Safari, etc.
30
30
31
31
The terms above are good to remember because they are used in developer articles on the internet. We'll use them too. For instance, if "a feature X is supported by V8", then it probably works in Chrome and Opera.
32
32
33
-
```smart header="How do engines work?"
33
+
```smart header="Interpretatorlar ishni qanday bajarishadi?"
34
34
35
35
Engines are complicated. But the basics are easy.
36
36
@@ -41,15 +41,15 @@ Engines are complicated. But the basics are easy.
41
41
The engine applies optimizations at each step of the process. It even watches the compiled script as it runs, analyzes the data that flows through it, and applies optimizations to the machine code based on that knowledge. When it's done, scripts run quite fast.
42
42
```
43
43
44
-
## What can in-browser JavaScript do?
44
+
## What can in-browser JavaScript do? Brauzerdagi JavaScript nimani bajara oladi?
45
45
46
46
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.
47
47
48
48
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.
49
49
50
50
In-browser JavaScript can do everything related to webpage manipulation, interaction with the user, and the webserver.
51
51
52
-
For instance, in-browser JavaScript is able to:
52
+
Masalan:
53
53
54
54
- Add new HTML to the page, change the existing content, modify styles.
55
55
- React to user actions, run on mouse clicks, pointer movements, key presses.
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/01-hello-world/article.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,27 @@ But we need a working environment to run our scripts and, since this book is onl
7
7
So first, let's see how we attach a script to a webpage. For server-side environments (like Node.js), you can execute the script with a command like `"node my.js"`.
8
8
9
9
10
-
## The "script" tag
10
+
## HTML "script" tegi
11
11
12
12
JavaScript programs can be inserted into any part of an HTML document with the help of the `<script>` tag.
Ushbu darslik ingliz tilidan tarjima qilinmoqda. Darslinki ingliz tili vesriyasi <https://javascript.info>-da joylashgan.
3
+
Ushbu darslik ingliz tilidan tarjima qilinmoqda. Darslinki ingliz tili vesriyasi <https://javascript.info>-da joylashgan.
4
+
Tarjimamizda xatolar mavjud bo'lishi mumkin, shunda ularni aniqlasangiz ushbu repozitoriyning Issues[https://#] bo'limida bizga murojaat qilishingizni so'raymiz.
4
5
5
6
## Tarjimalar
6
7
7
-
Biz darslikni turli tillarda taqdim etishni xohlaymiz, shuning uchun, iltimos bizga tarjima qilishga yordam bering.
8
+
Biz darslikni turli tillarda taqdim etishni xohlaymiz, shuning uchun, iltimos bizga o'z tilingizga tarjima qilishga yordam bering.
8
9
Batafsil ma'lumot uchun quyidagi havolaga o'ting <https://github.com/javascript-tutorial/translate>.
9
10
10
11
## Hissalar
11
12
12
-
Shuningdek, biz boshqa odamlar bilan hamkorlikda ishlashni xohlaymiz.
13
+
Bizning jamoamiz boshqa odamlar bilan hamkorlikda ishlashni xohlaydi. Shuning uchun o'zbek tili tarjimasiga o'z hissangizni qo'shing!
13
14
14
-
Biror narsa noto'g'rimi? Mavzu yo'qmi? Buni odamlarga tushuntirib, Pull Request (PR) orqali qo'shing👏
15
+
Darslikda biror narsa noto'g'rimi? Yoki kerakli mavzu yo'qmi? Buni bizga tushuntirib, Pull Request (PR) orqali o'z murojaatingizni qoldiring.
15
16
16
-
**You can edit the text in any editor.**The tutorial uses enhanced "markdown" format, easy to grasp. And if you want to see how it looks on-site, there's a server to run the tutorial locally at<https://github.com/javascript-tutorial/server>.
17
+
**Tarjimani siz har bir matn mutaxarririda osonligicha yozishingiz mumkin**Darslikni matni oson va qulay Markdown tilida yozilgan. Agar siz darslikni loyihasini veb-sahifa tarzida ko'rmoqchi bo'lsangiz, unda siz mahalliy server tashkil etishingiz kerak. Shu mavzu haqida batafsil ma'lumot olish uchun quyidagi maqolaga o'ting<https://github.com/javascript-tutorial/server>.
17
18
18
19
Tarjima ishtirokchilari ro'yxati <https://javascript.info/about#contributors>-da mavjud.
19
20
20
21
## Loyihaning tuzilishi
21
22
22
23
Har bir bob, maqola yoki mashq o'z papkasiga ega.
23
24
24
-
Papka `N-url` kabi nomlanadi, bu yerda `N` - saralash maqsadlari uchun raqam, `url` esa materiallarni URL qismi.
25
+
Papka `N-url` kabi nomlanadi, bu yerda `N` - saralash maqsadlari uchun raqamlar, `url` esa materiallarni URL qismlari.
25
26
26
27
Materialning turi papka ichidagi fayl bilan belgilanadi:
27
28
28
29
-`index.md` bobni belgilash uchun
29
30
-`article.md` maqolani belgilash uchun
30
-
-`task.md` mashqlarni belgilash uchun (yechimi esa `solution.md` faylida joylashishi kerak)
31
+
-`task.md` mashqlarni belgilash uchun (yechimi mavjud bo'lsa `solution.md` faylida joylanadi)
31
32
32
-
Bu fayllarning har biri `# Asosiy sarlavhadan` boshlanadi.
33
+
Bu fayllarning har biri `# Asosiy sarlavhadan` boshlanadi.
0 commit comments