Message from JavaScript discussions

April 2019

— Sounds like a global :P


TRGWII but I already had newGame declared after class declaration so instead I will go for currentGame

— There are so many challenges in my game that I don't see an other way to bypass this

— If a class Cat needs to have in it's proto a method from class Game how else would you do it?

— Sounds like you want inheritance, which is not a good pattern

— Luckily you can just hack the method right into Cat:
Cat.prototype.method = Game.prototype.method;

— Boom, Cat now has the method

— I will give it a try

— Why not good?

— Hey

— How to can i stick that blue footer in bottom of page

— Alsto that image took all the width , how to fix