Skip to content
Advertisement

Tag: subclass

Console.log from a class’ function

I want to test if my function inside my class returns the given sentence. But if I try to test using console.log, it returns ReferenceError: rev is not defined. What am I doing wrong? I’m a fairly new programmer, so bear with me if this is a stupid question. Answer The entire point of a class is to provide a

Advertisement