Posts by user207859 • 9 points
1 post
-
-3
votes2
answers280
viewsQ: Using another class variable in Javascript
I have the following class; class Banco { constructor (agencia, conta, saldo) { this.agencia = agencia this.conta = conta this.saldo = saldo exibir () { console.log(this.saldo) } } Let’s say I want…