Shouldn’t this code just work, though? In other words, we wrote
started in the
Nope. As you can see it isn’t. How can that be?
How to reference an object's variable while defining an object's method/function? A tip: this is very important to avoid potential errors.