Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
f723253
transpiler def
joaquinelio Mar 28, 2021
e2558cb
domain cookie option
joaquinelio Apr 3, 2021
2c1d14b
Update article.md
joaquinelio Apr 3, 2021
b975263
Update article.md
joaquinelio Apr 3, 2021
3d88d33
Update article.md
ZYinMD Jun 13, 2021
2dce19e
"inserts into" instead of "appends to"
joaquinelio Jun 16, 2021
497ca99
Update article.md
joaquinelio Jun 16, 2021
9680c67
Merge pull request #2633 from joaquinelio/patch-4
iliakan Jun 16, 2021
cd466c5
Unnecessary escape characters in cookie.js
NNboru Jun 17, 2021
8c910b4
Update article.md
joaquinelio Jun 18, 2021
8cf2d51
Update article.md
joaquinelio Jun 18, 2021
0c41930
Update article.md
joaquinelio Jun 18, 2021
263f57e
Update article.md
joaquinelio Jun 18, 2021
492f506
Merge pull request #2555 from joaquinelio/patch-6
iliakan Jun 18, 2021
a6dfbb7
minor fixes
iliakan Jun 18, 2021
29f0121
Merge pull request #2636 from NNboru/patch-1
iliakan Jun 18, 2021
de36d0d
update one code comment in 1-js/09-classes/04-private-protected-prope…
ZYinMD Jun 18, 2021
c45e78f
Maybe. "accessors" link
joaquinelio Jun 18, 2021
d43bdd2
slightly improve clarity on Promise.all()
ZYinMD Jun 19, 2021
e49bc3b
Merge pull request #2627 from ZYinMD/patch-5
iliakan Jun 19, 2021
e877796
closes #2641
iliakan Jun 19, 2021
ff53f06
minor fixes
iliakan Jun 19, 2021
cf82cc3
minor fixes
iliakan Jun 19, 2021
85282ef
minor fixes
iliakan Jun 19, 2021
a40ca9a
minor fixes
iliakan Jun 19, 2021
54347b7
minor fixes
iliakan Jun 19, 2021
df6e5a4
minor fixes
iliakan Jun 19, 2021
e769408
minor fixes
iliakan Jun 19, 2021
de81cb4
minor fixes
iliakan Jun 19, 2021
7dacfd4
minor fixes
iliakan Jun 19, 2021
3661393
minor fixes
iliakan Jun 19, 2021
1b16f9d
Merge pull request #2640 from ZYinMD/patch-17
iliakan Jun 19, 2021
6f14c39
Merge pull request #2639 from joaquinelio/patch-4
iliakan Jun 19, 2021
52eaa63
typo
joaquinelio Jun 20, 2021
9847492
Typo in Ch 15 Functions
Yoona8 Jun 20, 2021
140c75d
Merge pull request #2644 from Yoona8/master
iliakan Jun 20, 2021
ffe91a6
Merge pull request #2643 from joaquinelio/patch-6
iliakan Jun 20, 2021
8558fa8
Merge pull request #2638 from ZYinMD/patch-16
iliakan Jun 20, 2021
b19a6f0
minor fixes
iliakan Jun 21, 2021
66bad3f
fix typo in 5-network/02-formdata
ZYinMD Jun 22, 2021
d7c2f08
Add one letter in 5-network/03-fetch-progress
ZYinMD Jun 22, 2021
c4efc35
minor grammar change in webcomponents-intro
ZYinMD Jun 23, 2021
b855f6c
add a section about css animation performance
ZYinMD Jun 24, 2021
9b99012
Merge pull request #2654 from ZYinMD/patch-24
iliakan Jun 24, 2021
c41361f
animation
iliakan Jun 24, 2021
8b3730b
minor fixes
iliakan Jun 24, 2021
2961588
minor fixes
iliakan Jun 24, 2021
753182b
minor fixes
iliakan Jun 24, 2021
7d838b3
minor fixes
iliakan Jun 24, 2021
32f01fb
minor fixes
iliakan Jun 24, 2021
6c15ba4
minor fixes
iliakan Jun 24, 2021
771aab4
minor fixes
iliakan Jun 24, 2021
2eb4251
minor fixes
iliakan Jun 24, 2021
2811211
minor fixes
iliakan Jun 24, 2021
27af482
minor fixes
iliakan Jun 24, 2021
934d32b
minor fixes
iliakan Jun 24, 2021
4420427
minor fixes
iliakan Jun 24, 2021
e609815
minor fixes
iliakan Jun 24, 2021
e06bc63
minor fixes
iliakan Jun 24, 2021
e79ce9d
minor fixes
iliakan Jun 25, 2021
c001068
minor fixes
iliakan Jun 25, 2021
dab34f7
minor fixes
iliakan Jun 26, 2021
e9d2a31
minor fixes
iliakan Jun 26, 2021
a0af69e
minor fixes
iliakan Jun 26, 2021
4ed51aa
minor fixes
iliakan Jun 26, 2021
54688eb
minor fixes
iliakan Jun 26, 2021
6dda47f
minor fixes
iliakan Jun 26, 2021
e8d7f37
minor fixes
iliakan Jun 26, 2021
9bba570
minor fixes
iliakan Jun 26, 2021
7725acc
minor fixes
iliakan Jun 26, 2021
bed62e1
Add generator.return
Manik2375 Jun 27, 2021
624b48b
Update article.md
Manik2375 Jun 27, 2021
8db6519
minor fixes
iliakan Jun 27, 2021
8752573
minor fixes
iliakan Jun 27, 2021
76656bd
minor fixes
iliakan Jun 27, 2021
16b9bda
minor fixes
iliakan Jun 28, 2021
2275894
Merge pull request #2657 from Manik2375/generator.return
iliakan Jul 1, 2021
e195256
Response header name is changed to the right one
websavva Jul 3, 2021
16de27d
Fix a small grammar mistake
iliyu Jul 4, 2021
89e22f8
confusing line
joaquinelio Jul 13, 2021
02c75d2
Update task.md
joaquinelio Jul 13, 2021
19ec58b
Update article.md
Gammadon Jul 16, 2021
ce38273
add a missing colon
mahdyar Jul 17, 2021
c3214e7
Update article.md
iliakan Jul 21, 2021
1bf6973
Merge pull request #2673 from mahdyar/patch-1
iliakan Jul 22, 2021
667eb56
Merge pull request #2672 from Gammadon/patch-1
iliakan Jul 22, 2021
a5f339e
Merge pull request #2670 from joaquinelio/patch-6
iliakan Jul 22, 2021
237d883
Merge pull request #2662 from riri-yu/patch-1
iliakan Jul 22, 2021
cb97b72
Merge pull request #2661 from WebSavva/patch-1
iliakan Jul 22, 2021
df215cd
Merge pull request #2653 from ZYinMD/patch-21
iliakan Jul 22, 2021
614c85a
minor fixes
iliakan Jul 22, 2021
0082fbe
minor fixes
iliakan Jul 22, 2021
173ce27
Merge pull request #2649 from ZYinMD/patch-20
iliakan Jul 22, 2021
823eea4
Merge pull request #2648 from ZYinMD/patch-19
iliakan Jul 22, 2021
2957e71
minor fixes
iliakan Jul 23, 2021
1b1a2c4
minor fixes
iliakan Jul 23, 2021
9c5388c
pointer events improvements
iliakan Jul 24, 2021
57ff060
minor fixes
iliakan Jul 24, 2021
2a6fd54
old and new
joaquinelio Jul 26, 2021
ef8d576
Merge pull request #2680 from joaquinelio/patch-4
iliakan Jul 26, 2021
05a97a0
Update article.md
RainbowDashy Aug 1, 2021
12d7968
Make use of `loadJson` inside `loadGithubUser`
Aug 6, 2021
1808fe3
slider not working on movile
joaquinelio Aug 8, 2021
4a7fe13
Update index.html
joaquinelio Aug 8, 2021
58f9c8d
minor fixes
iliakan Aug 8, 2021
bc08fd1
Merge pull request #2689 from joaquinelio/patch-8
iliakan Aug 8, 2021
6b4cfc2
Fix grammar
siimpragi Aug 9, 2021
d404087
Fix typo.
odsantos Aug 9, 2021
95ad576
Update article.md
msmilkshake Aug 11, 2021
f17c07a
Fix compound interest formula
shvchk Aug 14, 2021
a19e517
Update URLs
odsantos Aug 14, 2021
d3ae613
Merge pull request #2683 from RainbowDashy/patch-1
iliakan Aug 14, 2021
ed3b2c0
Merge pull request #2696 from odsantos/property-descriptors
iliakan Aug 14, 2021
71688e7
Merge pull request #2695 from shvchk/master
iliakan Aug 14, 2021
7edd7c3
Merge pull request #2694 from msmilkshake/patch-1
iliakan Aug 14, 2021
71f8a9e
Merge pull request #2693 from odsantos/css-animations-typo
iliakan Aug 14, 2021
3b7a35e
Merge pull request #2692 from siimpragi/patch-1
iliakan Aug 14, 2021
a6c0fad
Merge pull request #2686 from mindv0rtex/patch-1
iliakan Aug 14, 2021
4d01fc2
minor fixes
iliakan Aug 15, 2021
1b31575
promise chain flow
joaquinelio Aug 15, 2021
8287e24
edge
joaquinelio Aug 16, 2021
623737b
Update article.md
deisner Aug 21, 2021
22b7b51
Update article.md
Aug 26, 2021
e69a943
Update urls
imba-tjd Aug 27, 2021
08a5308
Update article.md
baooab Sep 11, 2021
1059096
Update URL.
odsantos Sep 14, 2021
df39e1a
Update article.md
vladdoroniuk Sep 14, 2021
76ef126
Fix typo
rizkyzhang Sep 22, 2021
7abc297
picture minor fixes
iliakan Sep 25, 2021
b09e38c
minor fixes
iliakan Sep 25, 2021
7651ae0
minor typo
fionatagious Oct 1, 2021
2f98054
chore: fix a typo
mahdyar Oct 4, 2021
f4801c3
closes #2738
iliakan Oct 10, 2021
171d2e7
Merge pull request #2731 from mahdyar/patch-1
iliakan Oct 10, 2021
3d47402
Merge pull request #2729 from fionatagious/patch-1
iliakan Oct 10, 2021
5c1ee32
Merge pull request #2725 from rizkyzhang/patch-6
iliakan Oct 10, 2021
1c63023
Merge pull request #2721 from xirly/master
iliakan Oct 10, 2021
9e4a1e9
Merge pull request #2720 from odsantos/object-references
iliakan Oct 10, 2021
8794b71
Merge pull request #2717 from baooab/patch-9
iliakan Oct 10, 2021
2e494c7
Merge pull request #2697 from joaquinelio/patch-4
iliakan Oct 10, 2021
f1210b4
minor
iliakan Oct 10, 2021
cbc4350
Merge pull request #2698 from joaquinelio/patch-5
iliakan Oct 10, 2021
0d67376
Merge pull request #2701 from deisner/patch-1
iliakan Oct 10, 2021
ab2c57c
Merge pull request #2704 from wilburn98/master
iliakan Oct 10, 2021
193319c
Merge pull request #2705 from imba-tjd/patch-1
iliakan Oct 10, 2021
e3b10e6
sort-by-field fix
joneskj55 Oct 10, 2021
91a89ea
Update article.md
LexaWin Oct 11, 2021
eda333d
minor fixes
iliakan Oct 12, 2021
4397c7f
not a right comparison
Jiapan-Yu Oct 21, 2021
c20baa7
Add missing "!"
mahdiHash Oct 21, 2021
db074cd
Remove redundant word in Possible Mistakes section
vigu86 Oct 22, 2021
e0624c3
Update article.md
dneey Oct 22, 2021
1310d54
fix typo
KennethKinLum Oct 23, 2021
4c2658d
Fixed a grammatical error
zaibugemi Oct 24, 2021
6250c91
Merge pull request #1 from zaibugemi/zaibugemi-patch-1
zaibugemi Oct 24, 2021
3699f73
async-await on top
iliakan Oct 25, 2021
277fbd2
Merge pull request #2762 from zaibugemi/master
iliakan Oct 25, 2021
2a5c881
minor fixes
iliakan Oct 25, 2021
e95cab9
Merge pull request #2741 from joneskj55/patch-1
iliakan Oct 25, 2021
51be747
Merge pull request #2744 from LexaWin/patch-1
iliakan Oct 25, 2021
aed8070
Merge pull request #2750 from Jiapan-Yu/master
iliakan Oct 25, 2021
20da240
Merge pull request #2751 from mahdiHashemi14/master
iliakan Oct 25, 2021
3c62ecc
Merge pull request #2753 from vigu86/patch-1
iliakan Oct 25, 2021
676319d
Merge pull request #2755 from dneey/patch-2
iliakan Oct 25, 2021
3efe4cf
Merge pull request #2759 from KennethKinLum/patch-14
iliakan Oct 25, 2021
9dc5f3e
minor fixes
iliakan Oct 25, 2021
91e9b9c
minor fixes
iliakan Oct 25, 2021
6be354d
minor fixes
iliakan Oct 25, 2021
2ac7526
minor fixes
iliakan Oct 25, 2021
8308537
closes #2757
iliakan Oct 25, 2021
6989312
closes #2752
iliakan Oct 25, 2021
f9f77a1
Highlighting opening braces for IIFEs
VamsiDevalla Oct 30, 2021
cc18823
minor fixes
iliakan Nov 1, 2021
be69f34
minor fixes
iliakan Nov 1, 2021
9fcffe1
minor fixes
iliakan Nov 1, 2021
15f7acf
minor fixes
iliakan Nov 1, 2021
f8782ac
Update article.md
itaileshem Nov 2, 2021
e431006
Update article.md
itaileshem Nov 2, 2021
d4ee188
Update article.md
itaileshem Nov 2, 2021
e4c5707
Update article.md
itaileshem Nov 2, 2021
4541b7a
minor fixes
iliakan Nov 3, 2021
a829155
minor fixes
iliakan Nov 12, 2021
3d9f1c9
Update script.js
LexaWin Nov 15, 2021
83d2003
added showStep method to our chain in the task
Tofpu Nov 16, 2021
690c223
added showStep to our chain in the solution
Tofpu Nov 16, 2021
caf1a65
fix the broken RFC link
Dec 2, 2021
762d0e5
Added reference link to mdn docs for Object.keys(user)
akxavier Dec 6, 2021
c574391
Update article.md
yangsong97 Dec 11, 2021
64da7ff
minor fixes
iliakan Dec 12, 2021
df72ada
Merge pull request #2789 from yangsong97/patch-1
iliakan Dec 12, 2021
153fd11
Merge pull request #2783 from akxavier/master
iliakan Dec 12, 2021
a521d20
minor fixes
iliakan Dec 12, 2021
3a34345
Merge pull request #2767 from VamsiDevalla/patch-1
iliakan Dec 12, 2021
fe63de8
Merge pull request #2776 from LexaWin/patch-2
iliakan Dec 12, 2021
747fc37
Merge pull request #2771 from itaileshem/fix-typo
iliakan Dec 12, 2021
2d80f86
Merge pull request #2770 from itaileshem/master
iliakan Dec 12, 2021
e6512a3
Merge pull request #2781 from chanjsq/patch-1
iliakan Dec 12, 2021
c5358c5
themable pictures
iliakan Dec 12, 2021
cf2ce5e
Type: touch-events should be touch-action
justforuse Dec 13, 2021
7e575de
Merge pull request #2792 from justforuse/patch-1
iliakan Dec 13, 2021
cbdb218
Merge pull request #2777 from Tofpu/missing-showstep-patch
iliakan Dec 13, 2021
92a8a40
addition-of-third-header-in-list
Manik2375 Dec 13, 2021
353c87d
typo
Manik2375 Dec 13, 2021
974073b
typeof
iliakan Dec 13, 2021
9a42577
minor fixes
iliakan Dec 13, 2021
b0e46f4
minor fixes
iliakan Dec 13, 2021
80148c0
minor fixes
iliakan Dec 13, 2021
233d63c
minor fixes
iliakan Dec 13, 2021
4bd4a74
minor fixes
iliakan Dec 13, 2021
98d590b
minor fixes
iliakan Dec 13, 2021
8d04d0d
minor fixes
iliakan Dec 13, 2021
e7c5d13
typo
joaquinelio Dec 13, 2021
dc6be3a
Update article.md
joaquinelio Dec 13, 2021
e715c5a
transl: easier to change where mdn: dsnt work
joaquinelio Dec 14, 2021
6fe40fc
Changed a word in article.md
yasledesma Dec 15, 2021
e9e06a5
Fix: Rewrite sentence in line 121
yasledesma Dec 16, 2021
8536bca
fix the broken RFC link in the JSON article
tburette Dec 20, 2021
53488ee
Replace 'mdn' link
odsantos Dec 20, 2021
1ee53e6
Merge pull request #2802 from odsantos/inheritance-fix-link
iliakan Dec 21, 2021
05336f1
Merge pull request #2794 from Manik2375/master
iliakan Dec 21, 2021
96bd8cf
Merge pull request #2795 from joaquinelio/patch-5
iliakan Dec 21, 2021
affee18
Merge pull request #2796 from joaquinelio/patch-8
iliakan Dec 21, 2021
ad70374
Merge pull request #2798 from HiddenOgre28/patch-1
iliakan Dec 21, 2021
3ee59f0
Merge pull request #2801 from tburette/master
iliakan Dec 21, 2021
25d51b1
Merge pull request #2800 from HiddenOgre28/patch-2
iliakan Dec 21, 2021
ad0df99
Update article.md
joaquinelio Dec 24, 2021
0cd40ae
Merge pull request #2564 from joaquinelio/patch-10
iliakan Dec 24, 2021
3c934b5
minor fixes
Dec 24, 2021
3aaa6fc
foolproof
joaquinelio Jan 9, 2022
246c600
Merge pull request #2819 from joaquinelio/patch-12
iliakan Jan 9, 2022
ac43e59
merging all conflicts
iliakan Jan 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ sftp-config.json
Thumbs.db


/svgs
21 changes: 20 additions & 1 deletion 1-js/01-getting-started/1-intro/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,25 @@ Brauzerlar o'z JavaScript interpretatorlariga ega, ular gohida "JavaScript virtu

Har bir intetptretatorni o'z nomi mavjud. Masalan:

<<<<<<< HEAD
<<<<<<< HEAD
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- Chrome va Opera brauzerlarida qo'llanadi.
- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- Firefox brauzerida.
- ...net Explorer brauerning turli xil versiyalari uchun "Trident" va "Chakra", Microsoft Edge uchun "ChakraCore", Safari uchun "Nitro" va "SquirrelFish" va boshqalar kabi boshqa kod nomlari mavjud.
=======
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome and Opera.
=======
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome, Opera and Edge.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f
- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- in Firefox.
- ...There are other codenames like "Chakra" for IE, "JavaScriptCore", "Nitro" and "SquirrelFish" for Safari, etc.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c

<<<<<<< HEAD
Yuqoridagi atamalarni eslab qolish yaxshi, chunki ular netdagi ishlab chiquvchilar maqolalarida qo'llaniladi. Biz ulardan ham foydalanamiz. Masalan, agar "X funktsiyasini V8 qo'llab-quvvatlasa", ehtimol u Chrome va Opera-da ishlaydi.
=======
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, Opera and Edge.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

```smart header="Intetptretatorlar ishni qanday bajarishadi?"

Expand Down Expand Up @@ -84,7 +92,11 @@ Masalan:

## JavaScript-da brauzerda nima qila olmaysiz?

<<<<<<< HEAD
JavaScript-ning brauzerdagi imkoniyatlari foydalanuvchi xavfsizligi uchun cheklangan. Maqsad yomon veb-sahifaning shaxsiy ma'lumotlarga kirishini yoki foydalanuvchi ma'lumotlariga zarar etkazishini oldini olishdir.
=======
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.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

Bunday cheklovlarga quyidagilar kiradi:

Expand Down Expand Up @@ -117,10 +129,17 @@ Agar JavaScript brauzerdan tashqarida, masalan serverda ishlatilsa, bunday chekl

JavaScript hech bo'lmaganda *uchta* ajoyib xususiyatga ega:

<<<<<<< HEAD
```solishtiring
+ HTML va CSS bilan to'liq integratsiyasi.
+ Oson ishlar osongina amalga oshiriladi.
+ Barcha asosiy brauzerlar tomonidan qo'llab-quvvatlanadi va ularda standart sifatida yoqilgan.
=======
```compare
+ Full integration with HTML/CSS.
+ Simple things are done simply.
+ Supported by all major browsers and enabled by default.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f
```
JavaScript - bu uchta narsani birlashtirgan yagona brauzer texnologiyasidir.

Expand Down Expand Up @@ -169,6 +188,6 @@ There are more. Of course, even if we use one of transpiled languages, we should
## Summary

- JavaScript was initially created as a browser-only language, but it is now used in many other environments as well.
- Today, JavaScript has a unique position as the most widely-adopted browser language with full integration in HTML/CSS.
- Today, JavaScript has a unique position as the most widely-adopted browser language, fully integrated with HTML/CSS.
- 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.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c
1 change: 0 additions & 1 deletion 1-js/01-getting-started/3-code-editors/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ Bizning katta dunyoda boshqa buyuk muharrirlar ham bor. Iltimos, o'zingizga eng
Muharriri tanlash, boshqa har qanday vositasi kabi, individual va loyihalar bog'liq, odatlar, va shaxsiy imtiyozlar.
=======
- [Atom](https://atom.io/) (cross-platform, free).
- [Visual Studio Code](https://code.visualstudio.com/) (cross-platform, free).
- [Sublime Text](http://www.sublimetext.com) (cross-platform, shareware).
- [Notepad++](https://notepad-plus-plus.org/) (Windows, free).
- [Vim](http://www.vim.org/) and [Emacs](https://www.gnu.org/software/emacs/) are also cool if you know how to use them.
Expand Down
4 changes: 4 additions & 0 deletions 1-js/02-first-steps/01-hello-world/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,17 @@ Skript fayllari HTML-ga `src` atributi bilan biriktirilgan:
<script src="/path/to/script.js"></script>
```

<<<<<<< HEAD
<<<<<<< HEAD
Bu erda, `/path/to/script.js` - bu skript fayliga (sayt ildizidan) mutlaq yo'l.

Joriy sahifadan nisbiy yo'lni ham taqdim etishingiz mumkin. Masalan, `src="script.js"` joriy papkada `"script.js"` faylini bildiradi.
=======
Here, `/path/to/script.js` is an absolute path to the script from the site root. One can also provide a relative path from the current page. For instance, `src="script.js"` would mean a file `"script.js"` in the current folder.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c
=======
Here, `/path/to/script.js` is an absolute path to the script from the site root. One can also provide a relative path from the current page. For instance, `src="script.js"`, just like `src="./script.js"`, would mean a file `"script.js"` in the current folder.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

Biz to'liq URL manzilini ham berishimiz mumkin. Masalan:

Expand Down
4 changes: 4 additions & 0 deletions 1-js/02-first-steps/04-variables/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ Endi `=` tayinlash operatori yordamida unga ba'zi ma'lumotlarni kiritishimiz mum
let message;

*!*
<<<<<<< HEAD
message = 'Hello'; // matni saqlash
=======
message = 'Hello'; // store the string 'Hello' in the variable named message
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f
*/!*
```

Expand Down
26 changes: 25 additions & 1 deletion 1-js/02-first-steps/05-types/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ The `symbol` type is used to create unique identifiers for objects. We have to m

`Typeof` operatori argument turini qaytaradi. Bu biz har xil turdagi qiymatlarni boshqacha ishlov berishni xohlaganimizda yoki tezkor tekshirishni xohlaganimizda foydalidir.

<<<<<<< HEAD
Ikkita shakili sintaksisning qo'llab-quvvatlaydi:

1. Operator sifatida: `typeof x`.
Expand All @@ -278,6 +279,9 @@ Ikkita shakili sintaksisning qo'llab-quvvatlaydi:
Boshqacha qilib aytganda, bu qavs bilan yoki ularsiz ishlaydi. Natija bir xil.

`Typeof x`ning qo'ngiroq qilganda u matni argument turi bilan qaytaradi
=======
A call to `typeof x` returns a string with the type name:
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

```js
typeof undefined // "undefined"
Expand Down Expand Up @@ -314,14 +318,28 @@ Oxirgi uchta satr qo'shimcha tushuntirishga muhtoj bo'lishi mumkin:

=======
1. `Math` is a built-in object that provides mathematical operations. We will learn it in the chapter <info:number>. Here, it serves just as an example of an object.
2. The result of `typeof null` is `"object"`. That's an officially recognized error in `typeof` behavior, coming from the early days of JavaScript and kept for compatibility. Definitely, `null` is not an object. It is a special value with a separate type of its own.
2. The result of `typeof null` is `"object"`. That's an officially recognized error in `typeof`, coming from very early days of JavaScript and kept for compatibility. Definitely, `null` is not an object. It is a special value with a separate type of its own. The behavior of `typeof` is wrong here.
3. The result of `typeof alert` is `"function"`, because `alert` is a function. We'll study functions in the next chapters where we'll also see that there's no special "function" type in JavaScript. Functions belong to the object type. But `typeof` treats them differently, returning `"function"`. That also comes from the early days of JavaScript. Technically, such behavior isn't correct, but can be convenient in practice.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c

## Xulosa

<<<<<<< HEAD
<<<<<<< HEAD
JavaScript-da 7 ta asosiy ma'lumotlar turi mavjud.
=======
```smart header="The `typeof(x)` syntax"
You may also come across another syntax: `typeof(x)`. It's the same as `typeof x`.

To put it clear: `typeof` is an operator, not a function. The parentheses here aren't a part of `typeof`. It's the kind of parentheses used for mathematical grouping.

Usually, such parentheses contain a mathematical expression, such as `(2 + 2)`, but here they contain only one argument `(x)`. Syntactically, they allow to avoid a space between the `typeof` operator and its argument, and some people like it.

Some people prefer `typeof(x)`, although the `typeof x` syntax is much more common.
```

## Summary
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

- `number` har qanday turdagi raqamlar uchun: butun son yoki suzuvchi nuqta.
- `string` matnlar uchun. Matnda bir yoki bir nechta belgi bo'lishi mumkin, alohida bitta belgi turi yo'q.
Expand All @@ -345,8 +363,14 @@ There are 8 basic data types in JavaScript.

`Typeof` operatori bizga qaysi tur o'zgaruvchida saqlanganligini ko'rish imkonini beradi.

<<<<<<< HEAD
- Ikki shakl: `typeof x` yoki `typeof(x)`.
- `"String"` kabi turdagi nomi bilan matni qaytaradi.
- `Null` uchun `"object"` qaytaradi -- bu tilda xato, aslida bu ob'yekt emas.
=======
- Usually used as `typeof x`, but `typeof(x)` is also possible.
- Returns a string with the name of the type, like `"string"`.
- For `null` returns `"object"` -- this is an error in the language, it's not actually an object.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

Keyingi boblarda biz ibtidoiy qadriyatlarga e'tibor qaratamiz va ular bilan tanishib bo'lgach, ob'yektlarga o'tamiz.
2 changes: 1 addition & 1 deletion 1-js/02-first-steps/09-comparison/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In JavaScript they are written like this:
- Greater/less than: <code>a &gt; b</code>, <code>a &lt; b</code>.
- Greater/less than or equals: <code>a &gt;= b</code>, <code>a &lt;= b</code>.
- Equals: `a == b`, please note the double equality sign `==` means the equality test, while a single one `a = b` means an assignment.
- Not equals. In maths the notation is <code>&ne;</code>, but in JavaScript it's written as <code>a != b</code>.
- Not equals: In maths the notation is <code>&ne;</code>, but in JavaScript it's written as <code>a != b</code>.

In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.

Expand Down
2 changes: 1 addition & 1 deletion 1-js/02-first-steps/11-logical-operators/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Bu "toza, mumtoz, faqat mantiqiy YOKI" bilan taqqoslaganda ba'zi qiziqarli foyda

It means that `||` processes its arguments until the first truthy value is reached, and then the value is returned immediately, without even touching the other argument.

That importance of this feature becomes obvious if an operand isn't just a value, but an expression with a side effect, such as a variable assignment or a function call.
The importance of this feature becomes obvious if an operand isn't just a value, but an expression with a side effect, such as a variable assignment or a function call.

<<<<<<< HEAD
alert(x); // undefined, chunki (x = 1) baholanmagan
Expand Down
6 changes: 5 additions & 1 deletion 1-js/02-first-steps/13-while-for/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Keling, `for` ifodani qisma ko'rib chiqamiz:

| qism | | |
|-------|----------|----------------------------------------------------------------------------|
<<<<<<< HEAD
<<<<<<< HEAD:1-js/02-first-steps/12-while-for/article.md
| boshlanishi | `i = 0` | Tsikldan e'lon qilingandan keyin bir marta bajariladi. |
| shart | `i < 3`| Har bir tsikl takrorlashdan oldin tekshiriladi. Agar yolg'on bo'lsa, tsikl to'xtaydi. |
Expand All @@ -129,6 +130,9 @@ Keling, `for` ifodani qisma ko'rib chiqamiz:
Umumiy tsikl algoritmi quyidagicha ishlaydi:
=======
| begin | `i = 0` | Executes once upon entering the loop. |
=======
| begin | `let i = 0` | Executes once upon entering the loop. |
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f
| condition | `i < 3`| Checked before every loop iteration. If false, the loop stops. |
| body | `alert(i)`| Runs again and again while the condition is truthy. |
| step| `i++` | Executes after the body on each iteration. |
Expand Down Expand Up @@ -438,7 +442,7 @@ label: {
}
```

...Although, 99.9% of the time `break` used is inside loops, as we've seen in the examples above.
...Although, 99.9% of the time `break` is used inside loops, as we've seen in the examples above.

A `continue` is only possible from inside a loop.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c:1-js/02-first-steps/13-while-for/article.md
Expand Down
6 changes: 5 additions & 1 deletion 1-js/02-first-steps/15-function-basics/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ In other words, to put these terms straight:

We declare functions listing their parameters, then call them passing arguments.

In the example above, one might say: "the function `sayMessage` is declared with two parameters, then called with two arguments: `from` and `"Hello"`".
In the example above, one might say: "the function `showMessage` is declared with two parameters, then called with two arguments: `from` and `"Hello"`".


## Default values
Expand Down Expand Up @@ -304,6 +304,7 @@ function showMessage(text) {
showMessage(); // empty message
```

<<<<<<< HEAD
<<<<<<< HEAD:1-js/02-first-steps/14-function-basics/article.md
...Yoki `||` operatori:

Expand All @@ -313,6 +314,9 @@ function showMessage(from, text) {
text = text || 'matn berilmagan';
=======
...Or we could use the `??` operator:
=======
...Or we could use the `||` operator:
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

```js
function showMessage(text) {
Expand Down
34 changes: 33 additions & 1 deletion 1-js/02-first-steps/16-function-expressions/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ function sayHi() {

Funktsiyani yaratish uchun yana bir sintaksis mavjud, u *funktsiya ifodasi* deb nomlanadi.

<<<<<<< HEAD
Bu shunday ko'rinishga ega:
=======
It allows to create a new function in the middle of any expression.

For example:
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

```js
let sayHi = function() {
alert( "Salom" );
};
```

<<<<<<< HEAD
Bu yerda funktsiya boshqa qiymatlar singari aniq ravishda yaratiladi va o'zgaruvchanga tayinlanadi. Funktsiya qanday aniqlangan bo'lishidan qat'iy nazar, bu faqat `sayHi` o'zgaruvchanida saqlanadigan qiymat.

<<<<<<< HEAD:1-js/02-first-steps/15-function-expressions-arrows/article.md
Expand All @@ -32,6 +39,21 @@ Ushbu kod namunalarining ma'nosi bir xil: "funktsiyani yarating va uni `sayHi`"
Hatto `alert` yordamida ushbu qiymatni chiqarishimiz mumkin:
=======
The meaning of these code samples is the same: "create a function and put it into the variable `sayHi`".
=======
Here we can see a variable `sayHi` getting a value, the new function, created as `function() { alert("Hello"); }`.

As the function creation happens in the context of the assignment expression (to the right side of `=`), this is a *Function Expression*.

Please note, there's no name after the `function` keyword. Omitting a name is allowed for Function Expressions.

Here we immediately assign it to the variable, so the meaning of these code samples is the same: "create a function and put it into the variable `sayHi`".

In more advanced situations, that we'll come across later, a function may be created and immediately called or scheduled for a later execution, not stored anywhere, thus remaining anonymous.

## Function is a value

Let's reiterate: no matter how the function is created, a function is a value. Both examples above store a function in the `sayHi` variable.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

We can even print out that value using `alert`:
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c:1-js/02-first-steps/16-function-expressions/article.md
Expand Down Expand Up @@ -85,10 +107,14 @@ Yuqorida nima batafsil sodir bo'lganligi:
3. Now the function can be called as both `sayHi()` and `func()`.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c:1-js/02-first-steps/16-function-expressions/article.md

<<<<<<< HEAD
E'tibor bering, biz birinchi satrda `sayHi` ni e'lon qilish uchun funktsiya ifodasidan foydalinishimiz mumkin edi:
=======
We could also have used a Function Expression to declare `sayHi`, in the first line:
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

```js
let sayHi = function() {
let sayHi = function() { // (1) create
alert( "Hello" );
};

Expand Down Expand Up @@ -116,6 +142,7 @@ let sayHi = function() {
}*!*;*/!*
```

<<<<<<< HEAD
<<<<<<< HEAD:1-js/02-first-steps/15-function-expressions-arrows/article.md
Javob oddiy:
- Kod bloklari va ularni ishlatadigan `if {...}`, `for {}`, `function f {}` va hokazo kabi sintaksis tuzilmalarining oxirida nuqta-vergul `;` qo'yish kerak emas.
Expand All @@ -125,6 +152,11 @@ The answer is simple:
- There's no need for `;` at the end of code blocks and syntax structures that use them like `if { ... }`, `for { }`, `function f { }` etc.
- A Function Expression is used inside the statement: `let sayHi = ...;`, as a value. It's not a code block, but rather an assignment. The semicolon `;` is recommended at the end of statements, no matter what the value is. So the semicolon here is not related to the Function Expression itself, it just terminates the statement.
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c:1-js/02-first-steps/16-function-expressions/article.md
=======
The answer is simple: a Function Expression is created here as `function(…) {…}` inside the assignment statement: `let sayHi = …;`. The semicolon `;` is recommended at the end of the statement, it's not a part of the function syntax.

The semicolon would be there for a simpler assignment, such as `let sayHi = 5;`, and it's also there for a function assignment.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f
````

## Qayta chaqirish funktsiyalari
Expand Down
4 changes: 2 additions & 2 deletions 1-js/02-first-steps/17-arrow-functions-basics/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ There's another very simple and concise syntax for creating functions, that's of
It's called "arrow functions", because it looks like this:

```js
let func = (arg1, arg2, ..., argN) => expression
let func = (arg1, arg2, ..., argN) => expression;
```

...This creates a function `func` that accepts arguments `arg1..argN`, then evaluates the `expression` on the right side with their use and returns its result.
This creates a function `func` that accepts arguments `arg1..argN`, then evaluates the `expression` on the right side with their use and returns its result.

In other words, it's the shorter version of:

Expand Down
12 changes: 12 additions & 0 deletions 1-js/03-code-quality/02-coding-style/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,19 @@ The great thing about them is that style-checking can also find some bugs, like
Here are some well-known linting tools:
>>>>>>> fb4fc33a2234445808100ddc9f5e4dcec8b3d24c

<<<<<<< HEAD
- [JSLint](http://www.jslint.com/) -- birinchi lintlardan biri.
- [JSHint](http://www.jshint.com/) -- JSLint-dan ko'proq sozlamalar.
- [ESLint](http://eslint.org/) -- ehtimol eng yangi.

Ularning barchasi ishni bajarishi mumkin. Muallif [ESLint](http://eslint.org/) dan foydalanadi.
=======
- [JSLint](https://www.jslint.com/) -- one of the first linters.
- [JSHint](https://jshint.com/) -- more settings than JSLint.
- [ESLint](https://eslint.org/) -- probably the newest one.

All of them can do the job. The author uses [ESLint](https://eslint.org/).
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

Aksariyat linterslar ko'plab taniqli muharrirlar bilan birlashtirilgan: muharriridagi plaginni yoqing va uslubni sozlang.

Expand Down Expand Up @@ -434,7 +442,11 @@ Bu erda `"extends"` direktivasi "eslint:recommended" sozlamalar to'plamiga asosl

Shuningdek, uslublar qoidalari to'plamlarini Internetdan yuklab olish va oldingilarni o'rniga ularni kengaytirish mumkin. O'rnatish haqida batafsil ma'lumot uchun <http://eslint.org/docs/user-guide/getting-started> ga qarang.

<<<<<<< HEAD
Shuningdek, ba'zi bir IDE-larda ichki linting mavjud, bu qulay, ammo ESLint kabi moslashtirilmaydi.
=======
It is also possible to download style rule sets from the web and extend them instead. See <https://eslint.org/docs/user-guide/getting-started> for more details about installation.
>>>>>>> 246c600f11b4e6c52b4ae14f83e65319671f998f

## Xulosa

Expand Down
Loading