Skip to content

Commit 49af62e

Browse files
Przetłumaczyłem pierwsze zdania książki
1 parent f64e656 commit 49af62e

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
# An Introduction to JavaScript
1+
# Wstęp do JavaScript
22

3-
Let's see what's so special about JavaScript, what we can achieve with it and which other technologies play well with it.
3+
Dlaczego JavaScript jest wyjątkowy? Co możemy zrobić dzięki JavaScript i pokrewnym technologiom? Aby się tego dowiedzieć czytaj dalej.
44

5-
## What is JavaScript?
5+
## Czym jest JavaScript?
66

7-
*JavaScript* was initially created to *"make webpages alive"*.
7+
*JavaScript* początkowo był stworzony aby *"ożywić strony internetowe"*.
88

9-
The programs in this language are called *scripts*. They can be written right in the HTML and execute automatically as the page loads.
9+
Programy napisane w tym języku są nazywane *skryptami*. Mogą być pisane wewnątrz kodu HTML i wykonywane są automatycznie po odświeżeniu strony.
1010

11-
Scripts are provided and executed as a plain text. They don't need a special preparation or a compilation to run.
11+
Skrypty to zwykły tekst. Nie wymagają specjalnego przygotowania czy kompilacji przed uruchomieniem.
1212

13-
In this aspect, JavaScript is very different from another language called [Java](http://en.wikipedia.org/wiki/Java).
13+
Pod tym względem, JavaScript bardzo różni się od innego, bardzo popularnego języka [Java](http://en.wikipedia.org/wiki/Java)
1414

1515
```smart header="Why <u>Java</u>Script?"
16-
When JavaScript was created, it initially had another name: "LiveScript". But Java language was very popular at that time, so it was decided that positioning a new language as a "younger brother" of Java would help.
16+
Gdy tworzono JavaScript, nadano mu nazwę "LiveScript". Jednak w tym czasie Java była bardzo popularnym językiem, dlatego zdecydowano promować JavaScript jako młodszego brata Javy, z nadzieją na szybsze wybicie się z nowym produktem na rynku.
1717
18-
But as it evolved, JavaScript became a fully independent language, with its own specification called [ECMAScript](http://en.wikipedia.org/wiki/ECMAScript), and now it has no relation to Java at all.
18+
JavaScript szybko ewoluował i rozwijał się. Wkrótce stał się całkowicie niezależnym językiem, ze swoją własną specyfikacją nazwaną [ECMAScript](http://en.wikipedia.org/wiki/ECMAScript) i obecnie nie ma absolutnie żadnych powiązań z Javą.
1919
```
2020

21-
At present, JavaScript can execute not only in the browser, but also on the server, or actually on any device where there exists a special program called [the JavaScript engine](https://en.wikipedia.org/wiki/JavaScript_engine).
21+
Obecnie, skrypty JavaScript mogą być wykonywane także poza przeglądarką. Po stronie serwera lub na każdym innym urządzeniu wyposażonym w tak zwany [Silnik Javascript](https://en.wikipedia.org/wiki/JavaScript_engine).
2222

23-
The browser has an embedded engine, sometimes it's also called a "JavaScript virtual machine".
23+
Przeglądarki mają osadzone silniki, czasem nazywane "Wirtualną Maszyną JavaScript"
2424

25-
Different engines have different "codenames", for example:
25+
Różne silniki mają różne nazwy, np:
2626

27-
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome and Opera.
28-
- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- in Firefox.
29-
- ...There are other codenames like "Trident", "Chakra" for different versions of IE, "ChakraCore" for Microsoft Edge, "Nitro" and "SquirrelFish" for Safari etc.
27+
- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- występuje w Chrome i Operze.
28+
- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- występuje w Firefox.
29+
- ...a także inne pod nazwami takimi jak "Trident", "Chakra" przeznaczone dla różnych wersji Internet Explorer, "ChakraCore" dla Edge, "Nitro" i "SquirrelFish" dla Safari itp.
3030

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.
31+
Pojęcia użyte powyżej warto zapamiętać, ponieważ są często używane przez developerów w artykułach czy tekstach w internecie. W tej książce także będą używane. Na przykład, jeśli "właściwość X jest obsługiwana przez V8", prawdopodobnie będzie działała w przeglądarce Chrome i Opera.
3232

33-
```smart header="How engines work?"
3433

35-
Engines are complicated. But the basics are easy.
34+
```smart header="How engines work?"
35+
Silniki są skomplikowane. Jednak założenia działania bardzo proste.
3636
37-
1. The engine (embedded if it's a browser) reads ("parses") the script.
38-
2. Then it converts ("compiles") the script to the machine language.
39-
3. And then the machine code runs, pretty fast.
37+
1. Silnik (wbudowany, jeśli mówimy o przeglądarce) czyta ("parsuje") skrypt.
38+
2. Następnie konwertuje ("kompiluje") treść skryptu na język maszynowy.
39+
3. I w tej chwili skrypt może zostać uruchomiony.
4040
41-
The engine applies optimizations on every stage 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. At the end, scripts are quite fast.
41+
W silnikach stosuje się optymalizację na każdym poziomie tego procesu. Obserwują one działające skrypty, analizują dane i na ich podstawie wykonują kod najlepiej i najszybciej jak to możliwe.
4242
```
4343

4444
## What can in-browser JavaScript do?

0 commit comments

Comments
 (0)