Skip to content

Commit

Permalink
fix: typo in showing cat's name (#731)
Browse files Browse the repository at this point in the history
Showing ReferenceError: catName is not defined. Use istead cat.name
  • Loading branch information
TheKostyak authored Apr 17, 2024
1 parent 5c24cf4 commit 3714f98
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 ${ catName }.`;
para1.textContent = `The cat's name is ${ cat.name }.`;
para2.textContent = `The cat's color is ${ cat.color }.`;

section.appendChild(para1);
Expand Down

0 comments on commit 3714f98

Please sign in to comment.