GeezerVison is showing github.com — Merge pull request #8 from Exarchiasghost/master · MorrielAlexis/JavaScript-Lessons@1e67ae9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Basic_Concepts/Objects/README.md +27-12Lines changed: 27 additions & 12 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | # Objects |
4 | 4 |
|
5 | | -This MD file serves as example/template. |
| 5 | +Objects are variables that are storing more values, (properties). Objects are a part of the world of Object Oriented Programming, a way of programming that is highly recommended to learn more about it. |
6 | 6 |
|
7 | | -It will be filled up soon. |
8 | 7 |
|
9 | | -(for Bucky to fill up) |
| 8 | +# Course Documentation |
| 9 | + |
10 | 10 |
|
| 11 | +## Objects |
11 | 12 |
|
12 | | -# Course Documentation |
| 13 | +In our example for objects we used the following code: |
| 14 | + |
| 15 | + |
| 16 | + var person = { |
| 17 | + name: "Bucky", |
| 18 | + age: 87 |
| 19 | + }; |
13 | 20 |
|
14 | | -(this for me to fill up with every element |
| 21 | + |
| 22 | + That is the typical syntax of javascripts object as well: |
| 23 | + |
| 24 | + var objectname = { |
| 25 | + property1: "property1valueinstringformat", |
| 26 | + property2: property2valueinarithmeticformat |
| 27 | + }; |
15 | 28 |
|
16 | | -that you use in lessons. syntax |
| 29 | +We achieve to insert more values in one variable by turning it to an object and by use the "property" format to each of our value |
| 30 | + |
17 | 31 |
|
18 | | -explaination and links for more) |
| 32 | + { property: valueofproperty }; |
19 | 33 |
|
20 | | -## Element to explain |
| 34 | + Curley brackets are defining the are of the properties, and also they defining that our variable is an object, and we separate our properties with the comma symbol. |
21 | 35 |
|
22 | | -(for example console.log) |
| 36 | + - Read more about [Object Oriented |
| 37 | + Programming](https://en.wikipedia.org/wiki/Object-oriented_programming) |
| 38 | + - in Wikipedia Read more about [Javascript |
| 39 | + Objects](http://www.w3schools.com/js/js_objects.asp) in W3schools |
23 | 40 |
|
24 | | -***Links*** |
25 | | - - Wikipedia |
26 | | - - Anotherlink,com |
| 41 | +> Written with [StackEdit](https://stackedit.io/). |