Skip to content

Commit

Permalink
Reintroduced intentional referenceError for tutorial (#743)
Browse files Browse the repository at this point in the history
Fixed someone's previous commit, this was **meant** to return a
referenceError that was then to be fixed by the tutorial taker by
creating a variable 'catError' and assigning it the cat.name value.

This same line can be seen in the live preview found at [Live Preview
HTML](https://github.com/mdn/learning-area/blob/main/javascript/oojs/tasks/object-basics/object-basics1.html).

Tutorial 'Test your skills: Object basics - Object Basics 1' does not
make sense without it.
  • Loading branch information
simonas-kulakauskas authored Jul 11, 2024
1 parent f6ed2e1 commit e5637b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
let para1 = document.createElement('p');
let para2 = document.createElement('p');

para1.textContent = `The cat's name is ${ cat.name }.`;
para1.textContent = `The cat's name is ${ catName }.`;
para2.textContent = `The cat's color is ${ cat.color }.`;

section.appendChild(para1);
Expand Down

0 comments on commit e5637b1

Please sign in to comment.