Skip to content

Commit ad22871

Browse files
committed
Styling in JavaScriptAdvance improved
1 parent cda7951 commit ad22871

13 files changed

+48
-63
lines changed

docs/JavaScript_Advance/AJAX.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,4 @@ Example:
4545
}
4646
})();
4747
</script>
48-
```
49-
50-
Reference:
51-
- https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX/Getting_Started
52-
- https://www.ibm.com/support/knowledgecenter/SS8PJ7_9.6.1/com.ibm.etools.webtoolscore.doc/topics/cajax.html
48+
```

docs/JavaScript_Advance/BOM_functions.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1-
# BOM objects: screen / location
1+
## History API [MDN](https://developer.mozilla.org/ru/docs/Web/API/History)
2+
3+
Interface manipulates browser history in the session borders
4+
5+
Fields
6+
7+
- {length} integer amount of elements in session history
8+
- {state} field stories state existed page
9+
10+
Methods
11+
12+
- {go} method loads a page from the session history with integer args
13+
- {back} method goes to the previous page in session history the same as history.go(-1)
14+
- {forfard} method goes to the next page in session history the same as history.go(1)
15+
- {pushState} method pushes the given data onto the session history stack with the specified title and, if provided, URL
16+
- {replaceState} updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL
17+
18+
## Navigator API [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Navigator)
19+
20+
provides the user-agent information
21+
22+
- {userAgent} user agent string for the current browser
23+
- {language} language of the browser UI
24+
- {languages} list of languages known to the user
25+
26+
Also contains a lot of user-agent information related to:
27+
28+
- media devices
29+
- bluetooth
30+
- usb
31+
- geo location
32+
-- etc.
33+
34+
##### {serviceWorker} provides access to registration, removal, upgrade, and communication with service worker
235

336
## Screen [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Screen)
437

docs/JavaScript_Advance/BOM_functions_1.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/JavaScript_Advance/JSON.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
JSON is a syntax for storing and exchanging data
33
Since the JSON format is text only, it can easily be sent to and from a server, and used as a data format by any programming language
44

5-
### Where JSON is used
5+
## Where JSON is used
66

77
The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, serving as an alternative to XML.
88

9-
### How to use JSON
9+
## How to use JSON
1010

1111
JSON data is normally accessed in Javascript through dot notation
1212

docs/JavaScript_Advance/async_await.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Async Await
1+
# Async Await
22

33
`async` and `await` is **syntactic sugar** for using `promises`. That means that the `async` and `await` keywords are transpiled to normal `promise` syntax.
44

docs/JavaScript_Advance/default_values.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/JavaScript_Advance/dom_manipulation_html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Top most tree nodes
1+
## Top most tree nodes
22

33
All operations on the DOM start with the **document** object. That's the main 'entry point' to DOM. From this tree we can access any node. The topmost tree nodes are available directly as document properties:
44
- **html**
55
- **body**
66
- **head**
77

8-
# DOM navigation
8+
## DOM navigation
99

1010
### Children
1111
- Children are nested exactly in the given one parent. For instance, `<head>` and `<body>` are children of `<html>` element.
@@ -28,7 +28,7 @@ All operations on the DOM start with the **document** object. That's the main 'e
2828
- The reason is that the root node `document.documentElement` (`<html>`) has `document` as its parent. But `document`is not an element node, so `parentNode` returns it and `parentElement` does not.
2929

3030

31-
# DOM collections
31+
## DOM collections
3232
- **ChildNodes** returns iterable array-like object.
3333
- We can use for...of loop to iterate over it. Though array methods are not applicable. However `Array.from()` can be used to convert it to a real array.
3434
- These collections are live and read-only. That means they reflect current state of the DOM and can not be altered or reassigned again.

docs/JavaScript_Advance/eventloop.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/JavaScript_Advance/json_parse_and_stringify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JSON Parse and Stringify
1+
## JSON Parse
22

33
The `JSON.parse()` method parses a JSON string, which turns the JSON string into an object.
44

@@ -13,7 +13,7 @@ let catFacts = await fetch(catFactsEndpoint);
1313
let parsedCatFacts = await catFacts.json();
1414
```
1515

16-
# JSON Stringify
16+
## JSON Stringify
1717

1818
The `JSON.stringify()` method turns a JavaScript object into a JSON string. `JSON.Stringify` takes 3 arguments:
1919

docs/JavaScript_Advance/object_assign.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,4 @@ console.log(object1);
3535
// expected output: { key: "newValue" }
3636
console.log(object2);
3737
// expected output: { key: "reallyNewValue" }
38-
```
39-
40-
***An Exhaustive reference for Object.assign() and other object methods can be found at [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)***
38+
```

0 commit comments

Comments
 (0)