Skip to content

Commit db4a880

Browse files
committed
WIP
1 parent b5cb105 commit db4a880

File tree

22 files changed

+446
-294
lines changed

22 files changed

+446
-294
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Hello, JavaScript!
2+
3+
The programs in JavaScript are called *scripts*. They can be embedded right into HTML using `<script>` tag and run automatically as the page loads.
4+
5+
For example, this HTML-page shows the "Hello" message:
6+
7+
```html run
8+
<!doctype html>
9+
<script>
10+
alert("Hello!");
11+
</script>
12+
```
13+
14+
JavaScript can execute not only in a browser, but also on a server, or actually on any device that has a special program called [the JavaScript engine](https://en.wikipedia.org/wiki/JavaScript_engine).
15+
16+
Browsers have built-in JavaScript engines, so they can run scripts.
17+
18+
We can also run scripts using [Node.js](https://nodejs.org), it's commonly used to build server-side applications.
19+
20+
Depending on the environment, JavaScript may provide platform-specific functionality.
21+
22+
- In a web browser, JavaScript can manipulate the web-page, send network requests, show messages and so on.
23+
- Node.js allows to run a web-server.
24+
25+
...And so on. Even a coffee machine may include its own JavaScript engine, that could allow us to program its recipes.
26+
27+
![](javascript-engine.svg)
28+
29+
In this tutorial we concentrate on the "core JavaScript", that's the same everywhere.**
30+
31+
After you learn it, you can go in any direction: learn browser functionality, how to write servers and so on.
32+
33+
Please turn the page to start learning JavaScript!
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)