Hi there!
I tested your code, and it was exactly right except for one tiny mistake; the related instruction in the assessment text is as follows:
"Finally, in the second-to-last line of the function, make the textContent property of the story variable (which references the paragraph) equal to newStory.”
In your code, you had
story.textContent = story
Which is setting the textContent of the paragraph to be equal to itself, hence it coming up with an [object HTMLParagraphElement] reference - it is an object, not some text.
To fix it, I changed the line to
story.textContent = newStory
which sets the textContent equal to the newStory text string, containing our modified silly story.
Best regards,
Chris Mills
Senior tech writer || Mozilla
developer.mozilla.org || MDN
cmi...@mozilla.com || @chrisdavidmills
> _______________________________________________
> dev-mdc mailing list
>
dev...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-mdc
> MDN contributor guide:
http://bit.ly/ContributorGuide