|
1 | 1 | # Hello, JavaScript! |
2 | 2 |
|
3 | | -JavaScript has a rich history. |
4 | | - |
5 | | -It was created in 1995 as a simple language exclusively for web browsers, to “make web pages alive”. Since then it has greatly evolved. |
| 3 | +JavaScript was created in 1995 as a simple language exclusively for web browsers, to "make web pages alive". Since then it has greatly evolved, it's quite far from there it started. |
6 | 4 |
|
7 | 5 | Today we can use JavaScript on many platforms: |
8 | 6 |
|
9 | 7 | - In a web-browser, by embedding it into a web page. |
10 | 8 | - On a general purpose computer or a server, using [Node.js](https://nodejs.org) and other means. |
11 | | -- ...Or actually on any device that has a special piece of software, called "JavaScript engine". |
| 9 | +- ...Or actually on any device that has a special piece of software, called "a JavaScript engine". |
12 | 10 |
|
13 | 11 | Technically, even a coffee machine can include its own JavaScript engine to allow programming of coffee recipes. |
14 | 12 |
|
15 | 13 |  |
16 | 14 |
|
17 | | -There's a formal language description called [ECMAScript Language Specification](https://tc39.es/ecma262/), it describes how a JavaScript engine works. Sometimes we'll give references to it, but, though technically strict, it's hard to read for humans. At least at first. |
18 | | - |
19 | | -Programs in JavaScript are called *scripts*. |
20 | | - |
21 | | -Browsers have built-in JavaScript engines, so they can run scripts. They can be embedded right into HTML using the `<script>` tag and run automatically as the page loads. |
22 | | - |
23 | | -For example, this HTML-page shows the "Hello, world!" message: |
24 | | - |
25 | | -```html run height=0 |
26 | | -<!doctype html> |
27 | | -<script> |
28 | | - alert("Hello, world!"); |
29 | | -</script> |
30 | | -``` |
31 | | - |
32 | | -To see it in action, you can click the "run" button in the upper-right corner. Also you can create a new file, e.g. `my.html` with this text and open it locally in a browser. |
33 | | - |
34 | | -Depending on the environment, JavaScript may provide platform-specific functionality. |
| 15 | +There's a formal language description called [ECMAScript Language Specification](https://tc39.es/ecma262/), it describes how a JavaScript engine works. Sometimes we'll give references to it, but, though technically correct, it's hard to read for humans. |
35 | 16 |
|
36 | | -- In a browser, JavaScript can manipulate the web-page, send network requests, show messages and so on. |
37 | | -- In node.js we can use JavaScript to run a web-server, read and write arbitrary files. |
38 | | -- ...And so on. |
| 17 | +Programs in JavaScript are called "scripts". |
39 | 18 |
|
40 | | -**In this course we concentrate on the core JavaScript, that's the same everywhere.** |
| 19 | +**In this tutorial we concentrate on the "core" JavaScript, that works mostly everywhere.** |
41 | 20 |
|
42 | | -We'll try to keep browser-specific notes at minimum. After you learn the core, you can go in any direction: browsers, frameworks, servers and so on. |
| 21 | +Then, after you're familiar with it, you'll be able to move in any direction: browsers, servers and so on. |
43 | 22 |
|
44 | 23 | Turn the page to start learning JavaScript! |
0 commit comments