Posts by Lucas Silva • 16 points
2 posts
-
0
votes2
answers462
viewsA: Undefined when accessing class attributes in Nodejs
There may also be a bind problem, that is, when a function of another lib comes into existence within the class it still has its own scope, It happens a lot in Javascript of you having to use this…
-
0
votes2
answers462
viewsA: Undefined when accessing class attributes in Nodejs
I’d have to run some tests first to get it right, but you can class Quadrado extends Poligono { constructor(comprimento) { // super chama o construtor da classe pai que vai atribuir comprimento para…