Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
developer-guide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
zk
developer-guide
Commits
7110234c
Commit
7110234c
authored
Sep 01, 2016
by
Тест Карнаухов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(javascript): small edits in lists nesting
parent
2cf0fafe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
1.3-javascript.md
1-standards/1.3-javascript.md
+27
-27
No files found.
1-standards/1.3-javascript.md
View file @
7110234c
...
...
@@ -89,7 +89,7 @@ function() {
// плохо
function
()
{
let
name
;
――――
let
name
;
}
// хорошо
...
...
@@ -119,35 +119,35 @@ $('#items')
-
**Простые типы**
: Когда вы взаимодействуете с простым типом, вы взаимодействуете непосредственно с его значением в памяти.
+
`string`
+
`number`
+
`boolean`
+
`null`
+
`undefined`
```
javascript
let
foo
=
1
;
let
bar
=
foo
;
bar
=
9
;
console
.
log
(
foo
,
bar
);
// => 1, 9. foo не изменился
```
-
`string`
-
`number`
-
`boolean`
-
`null`
-
`undefined`
```javascript
let foo = 1;
let bar = foo;
bar = 9;
console.log(foo, bar); // => 1, 9. foo не изменился
```
-
**Сложные типы**
: Когда вы взаимодействуете со сложным типом, вы взаимодействуете с ссылкой на его значение в памяти.
+
`object`
+
`array`
+
`function`
```
javascript
let
foo
=
[
1
,
2
];
let
bar
=
foo
;
bar
[
0
]
=
9
;
console
.
log
(
foo
[
0
],
bar
[
0
]);
// => 9, 9.
```
-
`object`
-
`array`
-
`function`
```javascript
let foo = [1, 2];
let bar = foo;
bar[0] = 9;
console.log(foo[0], bar[0]); // => 9, 9.
```
**[[⬆]](#Оглавление)**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment