Assessament rating for basic object skill test 5

I need help with this, is there any simpler way to write this code.
I would like the object value to be returned inside the paragraph, instead of just in the console. PLEASE. :blush: :worried:

exercise:

Hi @Phellipe_ferreira and welcome to the community :wave:

You could change your greeting() function to

return `Hello, said ${ this.name } the ${ this.breed }.`;

Then you will be able to use the following to print the return value to the paragraph:

para.textContent = cat.greeting();
para2.textContent = cat2.greeting();

I hope that helps. Please tell me if you need more help. :slightly_smiling_face:

Happy coding,
Michael

1 Like

Thank you my friend! :blush: :grin:
It helped me a lot, Iโ€™m going to study and pratice more to get as good as you.

1 Like

Youโ€™re welcome :slightly_smiling_face:

Thatโ€™s the right attitude. We need to constantly learn. Itโ€™s the same for both of us. :grin: