remove cut

This commit is contained in:
Ilya Kantor 2018-02-06 13:07:22 +03:00
parent 37f1936622
commit be007e78ef
99 changed files with 0 additions and 198 deletions

View file

@ -5,8 +5,6 @@ As we know from the chapter <info:types>, there are seven language types in Java
In contrast, objects are used to store keyed collections of various data and more complex entities. In JavaScript, objects penetrate almost every aspect of the language. So we must understand them first before going in-depth anywhere else.
[cut]
An object can be created with figure brackets `{…}` with an optional list of *properties*. A property is a "key: value" pair, where `key` is a string (also called a "property name"), and `value` can be anything.
We can imagine an object as a cabinet with signed files. Every piece of data is stored in its file by the key. It's easy to find a file by its name or add/remove a file.

View file

@ -4,8 +4,6 @@ Memory management in JavaScript is performed automatically and invisibly to us.
What happens when something is not needed any more? How does the JavaScript engine discover it and clean it up?
[cut]
## Reachability
The main concept of memory management in JavaScript is *reachability*.

View file

@ -5,8 +5,6 @@ By specification, object property keys may be either of string type, or of symbo
Till now we've only seen strings. Now let's see the advantages that symbols can give us.
[cut]
## Symbols
"Symbol" value represents a unique identifier.

View file

@ -13,8 +13,6 @@ And, in the real world, a user can *act*: select something from the shopping car
Actions are represented in JavaScript by functions in properties.
[cut]
## Method examples
For the start, let's teach the `user` to say hello:

View file

@ -7,8 +7,6 @@ There are special methods in objects that do the conversion.
In the chapter <info:type-conversions> we've seen the rules for numeric, string and boolean conversions of primitives. But we left a gap for objects. Now, as we know about methods and symbols it becomes possible to close it.
[cut]
For objects, there's no to-boolean conversion, because all objects are `true` in a boolean context. So there are only string and numeric conversions.
The numeric conversion happens when we subtract objects or apply mathematical functions. For instance, `Date` objects (to be covered in the chapter <info:date>) can be subtracted, and the result of `date1 - date2` is the time difference between two dates.

View file

@ -4,8 +4,6 @@ The regular `{...}` syntax allows to create one object. But often we need to cre
That can be done using constructor functions and the `"new"` operator.
[cut]
## Constructor function
Constructor functions technically are regular functions. There are two conventions though: