Skip to content

Corrects 3 typographical errors to improve clarity #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions objects/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ var language = {
};

```
The following code demonstates how to **get** a property's value.
The following code demonsrtates how to **get** a property's value.
```js
var variable = language.name;
// variable now contains "JavaScript" string.
variable = language['name'];
// The lines above do the same thing. The difference is that the second one lets you use litteraly any string as a property name, but it's less readable.
// The lines above do the same thing. The difference is that the second one lets you use literaly any string as a property name, but it's less readable.
variable = language.newProperty;
// variable is now undefined, because we have not assigned this property yet.
```
Expand All @@ -31,5 +31,5 @@ The following example shows how to **add** a new property **or change** an exist
language.newProperty = 'new value';
// Now the object has a new property. If the property already exists, its value will be replaced.
language['newProperty'] = 'changed value';
// Once again, you can access properties both ways. The first one (dot notation) is recomended.
// Once again, you can access properties both ways. The first one (dot notation) is recommended.
```