Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with upstream @ 29216730 #107

Merged
merged 1,918 commits into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1918 commits
Select commit Hold shift + click to select a range
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
5af71a9
fix sentence
KennethKinLum Oct 23, 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
199e412
Fix sentence
tathienphuoc 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
180cb44
Update article.md
rankanin Jan 3, 2022
3cf2212
Update article.md
kk-source Jan 7, 2022
ecbb2b8
redundant
joaquinelio Jan 8, 2022
3aaa6fc
foolproof
joaquinelio Jan 9, 2022
246c600
Merge pull request #2819 from joaquinelio/patch-12
iliakan Jan 9, 2022
435265e
Update article.md
joaquinelio Jan 9, 2022
de83e74
Update article.md
NickFallman Jan 10, 2022
610fb93
Merge pull request #2820 from NickFallman/patch-1
iliakan Jan 10, 2022
a960e3e
Added 'the' to first sentence
chrisbarbas Jan 13, 2022
cc74ccc
Update article.md
bookchiq Jan 13, 2022
421bbe5
Update article.md
11201010 Jan 15, 2022
ffcd381
Merge pull request #2803 from tathienphuoc/master
iliakan Jan 16, 2022
a6fdfda
Merge pull request #2828 from 11201010/master
iliakan Jan 16, 2022
e7b524c
Merge pull request #2825 from bookchiq/master
iliakan Jan 21, 2022
00237ef
Merge pull request #2824 from chrisbarbas/patch-1
iliakan Jan 21, 2022
eb23b2d
Merge pull request #2814 from kk-source/patch-1
iliakan Jan 21, 2022
d512818
minor fixes
iliakan Jan 21, 2022
62b3b9a
Update article.md
joaquinelio Jan 21, 2022
8b1d32d
added missing "the"
ArSn Jan 21, 2022
bd0921b
Merge pull request #2833 from ArSn/ArSn-add-the-1
iliakan Jan 21, 2022
34ab022
minor fixes
iliakan Jan 21, 2022
d7f7998
Merge pull request #2816 from joaquinelio/patch-9
iliakan Jan 21, 2022
d5f1b4a
Merge pull request #2810 from lankerened/master
iliakan Jan 21, 2022
36788a5
Merge pull request #2758 from KennethKinLum/patch-13
iliakan Jan 21, 2022
1dc6dfb
Merge pull request #2614 from jonathanlu31/patch-1
iliakan Jan 21, 2022
674a9a4
Correction to precedence levels
erolaliyev Jan 22, 2022
82e5d13
fix:Add missing test #2826 & fix related solution
Omid-Heydarzadeh Jan 22, 2022
025f588
Merge pull request #2837 from Omid-Heidarzadeh/bugfix-2826-add-missin…
iliakan Jan 22, 2022
bae0ef4
Merge pull request #2836 from erolaliyev/patch-1
iliakan Jan 24, 2022
804b6b0
fix formatting, change wording for clarity
robertmcabee Jan 24, 2022
779aad7
fixes operator precedence
ruslauz Jan 25, 2022
5d832d9
Fixes localStorage spec link
ruslauz Jan 25, 2022
824bc96
Include "us" in article sentence
Jan 26, 2022
69cd457
minor fix
Omid-Heydarzadeh Jan 28, 2022
639229e
Updated unary operator precedence explanation
jovton Jan 28, 2022
041bbb2
Update article.md
ruslauz Jan 28, 2022
0f74827
minor fixes
iliakan Jan 29, 2022
dd3c7a4
doc-fix: Modified a misplaced comma
Sen-442b Jan 29, 2022
a678674
images
iliakan Feb 3, 2022
9fce97b
minor fixes
iliakan Feb 3, 2022
31d2b33
Merge pull request #2838 from robertmcabee/master
iliakan Feb 3, 2022
e9caaab
Merge pull request #2847 from Sen-442b/patch-1
iliakan Feb 3, 2022
3ce3f3d
Merge pull request #2846 from jovton/master
iliakan Feb 3, 2022
cf49dd9
Merge pull request #2845 from Omid-Heidarzadeh/minorfix
iliakan Feb 3, 2022
d92b1a0
Merge pull request #2841 from justinpage/update-constructor-new-article
iliakan Feb 3, 2022
00bfa6d
Merge pull request #2840 from ruslauz/fix/local-storage-spec-link
iliakan Feb 3, 2022
ab0f35b
Merge branch 'master' into fix/operator-precedence
iliakan Feb 3, 2022
843f945
Merge pull request #2839 from ruslauz/fix/operator-precedence
iliakan Feb 3, 2022
9c74908
minor fixes
iliakan Feb 3, 2022
fc7bfbb
Update article.md
leviding Feb 4, 2022
e1be207
Update article.md
rankanin Feb 4, 2022
4db69b4
minor fixes
iliakan Feb 4, 2022
1f92729
minor fixes
iliakan Feb 4, 2022
f2e4db7
minor fixes
iliakan Feb 4, 2022
fb07094
Update blob article.md
buynao Feb 5, 2022
7647ab9
minor fixes
iliakan Feb 6, 2022
533d54d
Merge pull request #2853 from leviding/patch-39
iliakan Feb 6, 2022
d159503
Merge pull request #2854 from lankerened/patch-1
iliakan Feb 6, 2022
c9063dc
Merge pull request #2857 from buynao/master
iliakan Feb 6, 2022
9a2981c
minor fixes
iliakan Feb 6, 2022
f95671c
minor fixes
iliakan Feb 6, 2022
71da17e
minor fixes
iliakan Feb 6, 2022
9628391
Update article.md
leviding Feb 7, 2022
1e1f04f
Merge pull request #2864 from leviding/patch-40
iliakan Feb 7, 2022
bf7eb93
GB unit symbol
joaquinelio Feb 7, 2022
d7c8c75
Merge pull request #2866 from joaquinelio/patch-9
iliakan Feb 8, 2022
2921673
minor fixes
iliakan Feb 12, 2022
f1ce24a
merging all conflicts
iliakan Feb 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
45 changes: 45 additions & 0 deletions 1-js/01-getting-started/1-intro/article.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# JavaScript įvadas

<<<<<<< HEAD
Pažvelkime kuo ypatinga JavaScript kalba, ką mes galime su ja padaryti ir kokios kitos technologijos gali būti naudojamos kartu.
=======
Let's see what's so special about JavaScript, what we can achieve with it, and what other technologies play well with it.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

## Kas yra JavaScript?

<<<<<<< HEAD
Iš pat pradžių *JavaScript* buvo sukurta tam, kad *"padarytų tinklalapius gyvus"*.
=======
*JavaScript* was initially created to "make web pages alive".
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Programos, parašytos šia kalba yra vadinamos *skriptais* (and. scripts). Jos gali būti parašytos tinklalapio HTML ir suveikti automatiškai, kuomet tinklalapis kraunamas.

Expand All @@ -24,11 +32,19 @@ Naršyklės turi savo vidinį variklį, kuris kartais vadinamas "JavaScript virt

Skirtingi varikliai turi skirtingus slapyvardžius (ang. "nicknames"). Pavyzdžiui:

<<<<<<< HEAD
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- Chrome ir Opera.
- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- Firefox.
- Egzistuoja kiti slapyvardžiai, tokie kaip "Trident", "Chakra" skirtingoms IE versijom, "ChakraCore" Microsoft Edge naršklėje, "Nitro" ir "SquirellFish" Safari ir t.t.

Šias sąvokas verta atsiminti, nes jos naudojamos straipsniuose, skirtuose programuotojams. Mes taip pat jas naudosime. Pavyzdžiui, jeigu "feature X yra palaikoma V8", reiškias jinai ko gero veikia Chrome ir Opera naršklėse.
=======
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome, Opera and Edge.
- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- in Firefox.
- ...There are other codenames like "Chakra" for IE, "JavaScriptCore", "Nitro" and "SquirrelFish" for Safari, etc.

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.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

```smart header="Kaip veikia varikliai?"

Expand Down Expand Up @@ -59,12 +75,20 @@ Pavyzdžiui, JavaScript naršyklėje gali:

## Ko NEGALI PADARYTI JavaScript naršyklėje?

<<<<<<< HEAD
JavaScript galimybės naryklėje yra ribojamos dėl vartotojų saugumo. Tikslas - neleisti tinklalapiams pasiekti privačius duomenis arba žaloti vartotojo duomenis.
=======
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.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Ribojimų pavyzdžiai:
- JavaScript tinklalapyje negali skaityti/rašyti failus esančius kietajame diske, juos kopijuoti arba vykdyti programas. JavaScript neturi tiesioginės prieigos prie operacinės sistemos funkcijų.

<<<<<<< HEAD
Modernios naršklės leidžia dirbti su failais, bet prieiga ribojama ir tai leidžiama tik jeigu vartotojas įvykdo kažką konkretaus. Pavyzdžiui, perkelia failą į naršyklę arba pažymi failą naudodamas `<input>` žymą.
=======
- 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 functions.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Yra būdų komunikuoti su kamera/mikrofonu ir kitais įrenginiais, bet tai reikalauja išreikštinio vartotojo leidimo. Taigi, JavaScript tinklalapis negali suktai įjungti web kameros, stebėti aplinkos ir siųsti informaciją į [NSA](https://en.wikipedia.org/wiki/National_Security_Agency).
- Atskiros naršyklės kortelės (ang. "tabs") dažniausiai nežino viena apie kitą. Tačiau kartais viena kortelė naudoja JavaScript tam, kad atidarytų kitą kortelę, bet netgi tokiu atveju, JavaScript vienoje kortelėje negali pasiekti kitos, jeigu jie ateina iš skirtingų tinklalapių (skirtingas domenas, protokolas arba portas).
Expand All @@ -81,9 +105,15 @@ Yra būdų komunikuoti su kamera/mikrofonu ir kitais įrenginiais, bet tai reika
JavaScript turi bent *tris* nuostabius dalykus:

```compare
<<<<<<< HEAD
+ Pilna integracija su HTML/CSS
+ Paprastus dalykus padaryti yra nesudėtinga
+ Palaikoma visose populiariausiose naršyklėse
=======
+ Full integration with HTML/CSS.
+ Simple things are done simply.
+ Supported by all major browsers and enabled by default.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834
```
JavaScript yra vienintelė naršyklės technologija, kuri turi šiuos tris dalykus.

Expand All @@ -103,15 +133,30 @@ Modernūs įrankiai atlieka perrašymą labai greitai, tad programuotojai gali p

Tokių kalbų pavyzdžiai:

<<<<<<< HEAD
- [CoffeeScript](http://coffeescript.org/) yra "syntactic sugar" JavaScript. Trumpesnė sintaksė, su kuria galima rašyti aiškesnį ir konkretesnį kodą. Tai dažniausiai patinka Ruby programuotojams.
- [TypeScript](http://www.typescriptlang.org/) pagrindinis tikslas yra įvesti statinį tipizavimą. Tai palengvina sudėtingų sistemų programavimą. Sukurtas Microsoft.
- [Flow](http://flow.org/) taip pat turi statinį tipizavimą, bet kiek kitokiu būdu. Sukurtas Facebook.
- [Dart](https://www.dartlang.org/) yra atskira kalba, kuri turi savo paties variklį, kuris veikia ne naršyklėse (pvz. mobiliose aplikacijose), bet taip pat gali būti transpiliuotas į Javascriptą. Sukurtas Google.
=======
- [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.
- [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.
- [Flow](http://flow.org/) also adds data typing, but in a different way. Developed by Facebook.
- [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.
- [Brython](https://brython.info/) is a Python transpiler to JavaScript that enables the writing of applications in pure Python without JavaScript.
- [Kotlin](https://kotlinlang.org/docs/reference/js-overview.html) is a modern, concise and safe programming language that can target the browser or Node.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Yra ir daugiau pavyzdžių. Tačiau, netgi jeigu mes naudojame kažkurią iš transpiliuojamų kalbų, suprasti JavaScript yra ne mažiau svarbu.

## Santrauka

<<<<<<< HEAD
- JavaScript iš pat pradžių buvo sukurtas kaip kalba, veikianti naršyklėje, bet dabar turi ir daugiau aplinkų, kuriose gali būti vykdoma.
- Šią dieną JavaScript yra unikali tuo, kad tai labiausiai paplitusi kalba naršyklei, turinti pilną integraciją su HTML/CSS.
- Yra daug kalbų, kurios gali būti konvertuojamos į JavaScript ir turi papildomų funkcijų. Rekomenduojame į jas bent jau trumpai pažvelgti po to, kaip išmoksite JavaScript.
=======
- 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, 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.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834
12 changes: 12 additions & 0 deletions 1-js/01-getting-started/2-manuals-specifications/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,33 @@ Kasmet yra išleidžiama nauja specifikacijos versija. Tarp šitų išleidimų,

Galite perskaityti apie naujausias savybes, įskaitant ir tas, kurios yra "beveik standartas" (dar vadinamas "stage 3") galima rasti <https://github.com/tc39/proposals>.

<<<<<<< HEAD
Taip pat, jeigu norite programuoti naršyklei, tam yra kita specifikacija, kurią gali rasti [antroje](info:browser-environment) pamokų dalyje.
=======
Also, if you're developing for the browser, then there are other specifications covered in the [second part](info:browser-environment) of the tutorial.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

## Vadovai
- **MDN (Mozilla) JavaScript Reference** yra vadovas su pavyzdžiais ir kita informacija. Tinka, jeigu reikia detalios informacijos apie konkrečias kalbos funkcijas, metodus, ir pan.

<<<<<<< HEAD
Vadovą galima rasti <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference>.
=======
- **MDN (Mozilla) JavaScript Reference** is the main manual with examples and other information. It's great to get in-depth information about individual language functions, methods etc.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Tačiau, dažniausiai geriausia tiesiog ieškoti informacijos internete. Verta tiesiog naudoti "MDN [apibrėžimas]" užklausoje, pavyzdžiui <https://google.com/search?q=MDN+parseInt> tam, kad rastumėte informacijos apie `parseInt` funkciją.

<<<<<<< HEAD

- **MSDN** - Microsoft vadovas, turintis daug informacijos, įskaitant JavaScript (dažnai vadinamas JScript). Jeigu reikia kažko konkretaus skirto Internet Explorer, geriau eiti čia: <http://msdn.microsoft.com/>.

Taip pat, galima naudoti paiešką internete su frazėmis, tokiomis kaip "RegExp MSDN" arba "RegExp MSDN jscript".

## Suderinamumo (ang "compatibility") lentelės
=======
Although, it's often best to use an internet search instead. Just use "MDN [term]" in the query, e.g. <https://google.com/search?q=MDN+parseInt> to search for `parseInt` function.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

JavaScript yra nuolatos tobulinama kalba, todėl naujos savybės atsiranda reguliariai.

Expand Down
7 changes: 7 additions & 0 deletions 1-js/01-getting-started/3-code-editors/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ Praktikoj, lengvasvoriai redaktoriai turi daug papildymų (ang. "plugin"), įska
- [Notepad++](https://notepad-plus-plus.org/) (Windows, nemokamas).
- [Vim](http://www.vim.org/) ir [Emacs](https://www.gnu.org/software/emacs/) yra labai puikūs, jeigu moki jais naudotis.

<<<<<<< HEAD
## Nesiginčykime
=======
- [Atom](https://atom.io/) (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.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Redaktoriai, kurie buvo paminėti šioje pamokoje yra tie, kuriuos aš ir mano draugai, kuriuos laikau kietais programuotojais, naudojame ilgą laiką ir kurie tenkina mūsų poreikius.

Expand Down
13 changes: 13 additions & 0 deletions 1-js/01-getting-started/4-devtools/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ Konkretus vaizdas priklauso nuo Chrome versijos, kurią naudoji. Kartais atsiran
- Čia mes galim pamatyti raudoną klaidos žinutę. Šiuo atveju skriptas turi nežinomą "lalala" komandą.
- Dešinėje yra aktyvi nuoroda į `bug.html:12` su skaičiumi eilutės, kurioje yra klaida.

<<<<<<< HEAD
Žemiau klaidos žinutės yra mėlynas `>` simbolis. Jis parodo komandų eilutę (ang. "command line"), kurioje mes galime rašyti JavaScript komandas. Spausk `key:Enter` kad jas paleisti (`key:Shift+Enter` kad rašyti komandas per daugiau nei vieną eilutę).
=======
Below the error message, there is a blue `>` symbol. It marks a "command line" where we can type JavaScript commands. Press `key:Enter` to run them.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Dabar mes galime matyti klaidas. Pradžiai, to pakanka. Vėliau mes grįšime į programuotojų įrankius ir kalbėsime apie klaidų taisymą skyriuje <info:debugging-chrome>.

```smart header="Multi-line input"
Usually, when we put a line of code into the console, and then press `key:Enter`, it executes.

To insert multiple lines, press `key:Shift+Enter`. This way one can enter long fragments of JavaScript code.
```

## Firefox, Edge ir kiti

Expand All @@ -50,13 +59,17 @@ Atidaryk Nuostatas (ang. "Preferences") ir eik į "Pažangi" (ang. "Advanced").

Dabar `key:Cmd+Opt+C` įjungs konsolę. Taip pat turėk omeny, kad naujas pasirinkimas "Programuoti" (ang. "Develop") atsirado viršutiniame meniu. Jame yra daug komandų ir nustatymų.

<<<<<<< HEAD
```smart header="Kelių eilučių komandos"
Dažniausiai, jeigu konsolėje parašome vieną eilutę kodo ir paspaudžiame `key:Enter`, ji suveikia.

Tam, kad parašyti kelias eilutes, spausk `key:Shift+Enter`. Tokiu būdu mes galime parašyti ilgesnius fragmentus JavaScript kodo.
```

## Reziumė
=======
## Summary
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

- Programuotojo įrankiai leidžia mums pamatyti klaidas, paleisti komandas, analizuoti kintamuosiuos ir daugiau.
- Juos paleisti galime su `key:F12` dauguma naršklių per Windows. Chrome, jeigu naudojame Mac, reikalauja `key:Cmd+Opt+J`, Safari: `key:Cmd+Opt+C` (iš pradžių reikia aktyvuoti).
Expand Down
12 changes: 12 additions & 0 deletions 1-js/02-first-steps/01-hello-world/1-hello-alert/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>

<body>

<script>
alert( "I'm JavaScript!" );
</script>

</body>

</html>
2 changes: 2 additions & 0 deletions 1-js/02-first-steps/01-hello-world/1-hello-alert/solution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

[html src="index.html"]
15 changes: 14 additions & 1 deletion 1-js/02-first-steps/01-hello-world/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Tad visų pirma pabandykime pridėti skriptą prie internetinio puslapio. Aplink

## Žyma "script"

<<<<<<< HEAD
JavaScript programa gali būti pridėta prie bet kurios HTML dokumento dalies su `<script>` žymos pagalba.
=======
JavaScript programs can be inserted almost anywhere into an HTML document using the `<script>` tag.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Pavyzdžiui:

Expand Down Expand Up @@ -45,8 +49,13 @@ Galite paleisti pavyzdį paspausdami mygtuką "Paleisti" dešiniame virštutinia

Žyma `<script>` turi kelis atributus, kurie šiais laikais jau retai naudojami, bet juos dar galite rasti senuose koduose:

<<<<<<< HEAD
Atributas `type`: <code>&lt;script <u>type</u>=...&gt;</code>
: Senas HTML standartas, HTML4, reikalavo, kad skriptas turėtų `type`(tipą). Dažniausiai tau būdavo `type="text/javascript"`. Dabar tai nėra reikalaujama. Dar daugiau, modernus HTML standartas visiškai pakeitė šio atributo reikšmę. Dabar jis gali būti naudojamas JavaScript moduliuose. Bet tai jau pažengusio lygio tema; apie modulius kalbėsime kitoje šių pamokų dalyje.
=======
The `type` attribute: <code>&lt;script <u>type</u>=...&gt;</code>
: The old HTML standard, HTML4, required a script to have a `type`. Usually it was `type="text/javascript"`. It's not required anymore. Also, the modern HTML standard totally changed the meaning of this attribute. Now, it can be used for JavaScript modules. But that's an advanced topic, we'll talk about modules in another part of the tutorial.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Atributas `language`: <code>&lt;script <u>language</u>=...&gt;</code>
: Šis atributas turėjo nurodyti skripto kalbą, bet daugiau nebeturi prasmės, nes JavaScript ir yra numatytoji kalba. Nėra reikalo šio atributo naudoti.
Expand All @@ -73,12 +82,16 @@ Skriptų failai yra sujungiami su HTML `src` (šaltinio) atributo pagalba:
<script src="/path/to/script.js"></script>
```

<<<<<<< HEAD
Šiuo atveju `/path/to/script.js` yra tikslus kelias į skriptus iš pagrindinės svetainės. Dažnai naudojamas ir kitoks kelias iš esamo puslapio. Kaip pavyzdžiui, `src="script.js"` reiškia, kad `"script.js"` failas yra tame pačiame aplanke (folder) kaip ir HTML failas.
=======
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.
>>>>>>> 29216730a877be28d0a75a459676db6e7f5c4834

Taip pat galime pateikti pilną adresą (URL). Pavyzdžiui:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.2.0/lodash.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.js"></script>
```

Kad pridėtume kelis skriptus, naudojame kiekvienam atskiras žymas:
Expand Down
Loading