Skip to content

Commit c5ce557

Browse files
committed
Fix name of JavaScript
1 parent 3b14ed8 commit c5ce557

File tree

32 files changed

+61
-61
lines changed

32 files changed

+61
-61
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The engine applies optimizations at each step of the process. It even watches th
4545

4646
Modern JavaScript is a "safe" programming language. It does not provide low-level access to memory or CPU, because it was initially created for browsers which do not require it.
4747

48-
Javascript's capabilities greatly depend on the environment it's running in. For instance, [Node.JS](https://wikipedia.org/wiki/Node.js) supports functions that allow JavaScript to read/write arbitrary files, perform network requests, etc.
48+
JavaScript's capabilities greatly depend on the environment it's running in. For instance, [Node.JS](https://wikipedia.org/wiki/Node.js) supports functions that allow JavaScript to read/write arbitrary files, perform network requests, etc.
4949

5050
In-browser JavaScript can do everything related to webpage manipulation, interaction with the user, and the webserver.
5151

@@ -88,7 +88,7 @@ There are at least *three* great things about JavaScript:
8888
+ Simple things are done simply.
8989
+ Support by all major browsers and enabled by default.
9090
```
91-
Javascript is the only browser technology that combines these three things.
91+
JavaScript is the only browser technology that combines these three things.
9292

9393
That's what makes JavaScript unique. That's why it's the most widespread tool for creating browser interfaces.
9494

1-js/06-advanced-functions/03-closure/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function sayHiBye(firstName, lastName) {
221221
}
222222
```
223223

224-
Here the *nested* function `getFullName()` is made for convenience. It can access the outer variables and so can return the full name. Nested functions are quite common in Javascript.
224+
Here the *nested* function `getFullName()` is made for convenience. It can access the outer variables and so can return the full name. Nested functions are quite common in JavaScript.
225225

226226
What's much more interesting, a nested function can be returned: either as a property of a new object (if the outer function creates an object with methods) or as a result by itself. It can then be used somewhere else. No matter where, it still has access to the same outer variables.
227227

@@ -473,7 +473,7 @@ The code outside of the block (or inside another script) doesn't see variables i
473473

474474
### IIFE
475475

476-
In the past, there were no block-level lexical environment in Javascript.
476+
In the past, there were no block-level lexical environment in JavaScript.
477477

478478
So programmers had to invent something. And what they did is called "immediately-invoked function expressions" (abbreviated as IIFE).
479479

1-js/06-advanced-functions/05-global-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ No, it's not, because it may lead to naming conflicts: the same variable name ca
7979

8080
As of now, the multi-purpose `window` is considered a design mistake in the language.
8181

82-
Luckily, there's a "road out of hell", called "Javascript modules".
82+
Luckily, there's a "road out of hell", called "JavaScript modules".
8383

8484
If we set `type="module"` attribute on a `<script>` tag, then such script is considered a separate "module" with its own top-level scope (lexical environment), not interfering with `window`.
8585

1-js/08-prototypes/04-prototype-methods/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
In the first chapter of this section, we mentioned that there are modern methods to setup a prototype.
55

6-
The `__proto__` is considered outdated and somewhat deprecated (in browser-only part of the Javascript standard).
6+
The `__proto__` is considered outdated and somewhat deprecated (in browser-only part of the JavaScript standard).
77

88
The modern methods are:
99

@@ -81,7 +81,7 @@ Why was `__proto__` replaced by the functions? That's an interesting question, r
8181
```warn header="Don't reset `[[Prototype]]` unless the speed doesn't matter"
8282
Technically, we can get/set `[[Prototype]]` at any time. But usually we only set it once at the object creation time, and then do not modify: `rabbit` inherits from `animal`, and that is not going to change.
8383

84-
And JavaScript engines are highly optimized to that. Changing a prototype "on-the-fly" with `Object.setPrototypeOf` or `obj.__proto__=` is a very slow operation, it breaks internal optimizations for object property access operations. So evade it unless you know what you're doing, or Javascript speed totally doesn't matter for you.
84+
And JavaScript engines are highly optimized to that. Changing a prototype "on-the-fly" with `Object.setPrototypeOf` or `obj.__proto__=` is a very slow operation, it breaks internal optimizations for object property access operations. So evade it unless you know what you're doing, or JavaScript speed totally doesn't matter for you.
8585
```
8686
8787
## "Very plain" objects

1-js/09-classes/01-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ So, what exactly is a `class`? That's not an entirely new language-level entity
6868

6969
Let's unveil any magic and see what a class really is. That'll help in understanding many complex aspects.
7070

71-
In Javascript, a class is a kind of a function.
71+
In JavaScript, a class is a kind of a function.
7272

7373
Here, take a look:
7474

1-js/09-classes/04-private-protected-properties-methods/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ In JavaScript, there are three types of properties and members:
5555

5656
In many other languages there also exist "protected" fields: accessible only from inside the class and those extending it. They are also useful for the internal interface. They are in a sense more widespread than private ones, because we usually want inheriting classes to gain access to properly do the extension.
5757

58-
Protected fields are not implemented in Javascript on the language level, but in practice they are very convenient, so they are emulated.
58+
Protected fields are not implemented in JavaScript on the language level, but in practice they are very convenient, so they are emulated.
5959

60-
In the next step we'll make a coffee machine in Javascript with all these types of properties. A coffee machine has a lot of details, we won't model them to stay simple (though we could).
60+
In the next step we'll make a coffee machine in JavaScript with all these types of properties. A coffee machine has a lot of details, we won't model them to stay simple (though we could).
6161

6262
## Protecting "waterAmount"
6363

@@ -186,7 +186,7 @@ So protected fields are naturally inheritable. Unlike private ones that we'll se
186186

187187
[recent browser=none]
188188

189-
There's a finished Javascript proposal, almost in the standard, that provides language-level support for private properties and methods.
189+
There's a finished JavaScript proposal, almost in the standard, that provides language-level support for private properties and methods.
190190

191191
Privates should start with `#`. They are only accessible from inside the class.
192192

@@ -325,6 +325,6 @@ Hiding complexity
325325
To hide internal interface we use either protected or public properties:
326326

327327
- Protected fields start with `_`. That's a well-known convention, not enforced at the language level. Programmers should only access a field starting with `_` from its class and classes inheriting from it.
328-
- Private fields start with `#`. Javascript makes sure we only can access those from inside the class.
328+
- Private fields start with `#`. JavaScript makes sure we only can access those from inside the class.
329329

330330
Right now, private fields are not well-supported among browsers, but can be polyfilled.

1-js/11-async/07-microtask-queue/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ As said in the [specification](https://tc39.github.io/ecma262/#sec-jobs-and-job-
3030
- The queue is first-in-first-out: tasks enqueued first are run first.
3131
- Execution of a task is initiated only when nothing else is running.
3232

33-
Or, to say that simply, when a promise is ready, its `.then/catch/finally` handlers are put into the queue. They are not executed yet. Javascript engine takes a task from the queue and executes it, when it becomes free from the current code.
33+
Or, to say that simply, when a promise is ready, its `.then/catch/finally` handlers are put into the queue. They are not executed yet. JavaScript engine takes a task from the queue and executes it, when it becomes free from the current code.
3434

3535
That's why "code finished" in the example above shows first.
3636

@@ -54,7 +54,7 @@ Now the order is as intended.
5454

5555
## Event loop
5656

57-
In-browser Javascript, as well as Node.js, is based on an *event loop*.
57+
In-browser JavaScript, as well as Node.js, is based on an *event loop*.
5858

5959
"Event loop" is a process when the engine sleeps and waits for events, then reacts on those and sleeps again.
6060

1-js/11-async/08-async-await/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function f() {
1212
}
1313
```
1414

15-
The word "async" before a function means one simple thing: a function always returns a promise. Even If a function actually returns a non-promise value, prepending the function definition with the "async" keyword directs Javascript to automatically wrap that value in a resolved promise.
15+
The word "async" before a function means one simple thing: a function always returns a promise. Even If a function actually returns a non-promise value, prepending the function definition with the "async" keyword directs JavaScript to automatically wrap that value in a resolved promise.
1616

1717
For instance, the code above returns a resolved promise with the result of `1`, let's test it:
1818

1-js/12-generators-iterators/1-generators/01-pseudo-random-generator/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ There are many areas where we need random data.
55

66
One of them is testing. We may need random data: text, numbers etc, to test things out well.
77

8-
In Javascript, we could use `Math.random()`. But if something goes wrong, we'd like to be able to repeat the test, using exactly the same data.
8+
In JavaScript, we could use `Math.random()`. But if something goes wrong, we'd like to be able to repeat the test, using exactly the same data.
99

1010
For that, so called "seeded pseudo-random generators" are used. They take a "seed", the first value, and then generate next ones using a formula. So that the same seed yields the same sequence, and hence the whole flow is easily reproducible. We only need to remember the seed to repeat it.
1111

1-js/12-generators-iterators/1-generators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ If we don't catch the error there, then, as usual, it falls through to the outer
462462
- Inside generators (only) there exists a `yield` operator.
463463
- The outer code and the generator may exchange results via `next/yield` calls.
464464

465-
In modern Javascript, generators are rarely used. But sometimes they come in handy, because the ability of a function to exchange data with the calling code during the execution is quite unique.
465+
In modern JavaScript, generators are rarely used. But sometimes they come in handy, because the ability of a function to exchange data with the calling code during the execution is quite unique.
466466

467467
Also, in the next chapter we'll learn async generators, which are used to read streams of asynchronously generated data in `for` loop.
468468

0 commit comments

Comments
 (0)