changes
This commit is contained in:
parent
b6ed18e70d
commit
c9401b3104
15 changed files with 231 additions and 233 deletions
|
@ -1,10 +1,11 @@
|
|||
# Hello, world!
|
||||
|
||||
The tutorial that you're reading is about the core JavaScript, that is platform-independant. So you'll be able to learn how to use Node.JS and other things based on that knowledge.
|
||||
The tutorial that you're reading is about the core JavaScript, that is platform-independant. Further on you will be able learn Node.JS and other platforms that use it.
|
||||
|
||||
But we need a working environment to run our scripts, and, just because this book is online, the browser is probably a good choice. We'll use a few browser-specific commands like `alert`, but will keep their amount to the minimum.
|
||||
But we need a working environment to run our scripts, and, just because this book is online, the browser a good choice. We'll keep the amount of browser-specific commands (like `alert`) to minimum, so that you don't spend time on them if you plan to concentrate on another environment like Node.JS. From the other hand, browser details are explained in detail in the [next part](/ui) of the tutorial. So
|
||||
|
||||
So first let's see how to attach a script to the webpage. For server-side environments you can just execute it with a command like `"node my.js"` for Node.JS.
|
||||
|
||||
So here we'll see how to attach a script to the webpage, that's simple enough. For server-side environments you can just execute it with a command like `"node my.js"` for Node.JS.
|
||||
|
||||
[cut]
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ alert( 'World' )
|
|||
|
||||
Here JavaScript interprets the line break as an "implicit" semicolon. That's also called an [automatic semicolon insertion](https://tc39.github.io/ecma262/#sec-automatic-semicolon-insertion).
|
||||
|
||||
**In most cases a newline implies a simicolon. But "in most cases" does not mean "always"!**
|
||||
**In most cases a newline implies a semicolon. But "in most cases" does not mean "always"!**
|
||||
|
||||
There are cases when a newline does not mean a semicolon, for example:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue