Library project

I have a general question, after defining a class with properties and methods, I tried to call the class out of the block with the help of a console log but unsuccessfully the error showed “undefined”, maybe missing something I wrote.
class Media {
this._title = title;
this._ratings = ratings;
this._isCheckedOut = false;

I don’t see any console.log? Please copy your full code to the forum