Erro:
/home/victor.assuncao@jv01.local/workspace/Alura/JS/Banco/index.js:20 name; ^
SyntaxError: Unexpected token ; at Module.compile (internal/modules/cjs/loader.js:723:23) at Object.Module.extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Meu código:
class Client {
name;
cpf;
agency;
balance;
}
const client1 = new Client();
client1.name = "Victor";
client1.cpf = 12183912329;
client1.agency = 1001;
client1.balance = 0;
console.log(client1);