Skip to content
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

Objects and Object Constructors: Clarified project reference in Objects and Object Constructors lesson #28893

Merged
merged 1 commit into from
Oct 2, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@

### Exercise

Write a constructor for making "Book" objects. We will revisit this in the project at the end of this lesson. Your book objects should have the book's `title`, `author`, the number of `pages`, and whether or not you have `read` the book.
Write a constructor for making "Book" objects. We will revisit this in the next project. Your book objects should have the book's `title`, `author`, the number of `pages`, and whether or not you have `read` the book.

Put a function into the constructor that can report the book info like so:

Expand Down Expand Up @@ -359,7 +359,7 @@
1. You might have noticed us using the `this` keyword in object constructors and prototype methods in the examples above.

1. [JavaScript Tutorial's article on the `this` keyword](https://www.javascripttutorial.net/javascript-this/) covers how `this` changes in various situations. Pay special attention to the pitfalls mentioned in each section.
1. Read the article [[[Prototype]] vs __proto__ vs .prototype in Javascript](https://medium.com/@eamonocallaghan/prototype-vs-proto-vs-prototype-in-javascript-6758cadcbae8)

Check failure on line 362 in javascript/organizing_your_javascript_code/objects_and_object_constructors.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Proper names should have the correct capitalization

javascript/organizing_your_javascript_code/objects_and_object_constructors.md:362:66 MD044/proper-names Proper names should have the correct capitalization [Expected: JavaScript; Actual: Javascript] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md044.md

Check failure on line 362 in javascript/organizing_your_javascript_code/objects_and_object_constructors.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Strong style

javascript/organizing_your_javascript_code/objects_and_object_constructors.md:362:39 MD050/strong-style Strong style [Expected: asterisk; Actual: underscore] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md

Check failure on line 362 in javascript/organizing_your_javascript_code/objects_and_object_constructors.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Strong style

javascript/organizing_your_javascript_code/objects_and_object_constructors.md:362:46 MD050/strong-style Strong style [Expected: asterisk; Actual: underscore] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md

</div>

Expand Down
Loading