Print the contents of an object created from a class

Asked

Viewed 10 times

0

I created an object from a class and saved it inside a variable, but I can’t print it on the screen using string template, because when I do it appears in the print [Object] instead of a text with the attributes. I can only print what I want by creating a new console.log() only for the variable with the object.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.