+ 1
I really don't know why the output of this code isn't --> "Carlos" "Daniel"
5 odpowiedzi
0
Fixed it I think
https://code.sololearn.com/WumXLPr2BEqD/?ref=app
+ 1
Thank you but I was trying to create a concatenation between the two strings, as if I was trying to do what I said but otherwise.
But thank you by the way.
+ 1
Ore Adeleye Thanks, that is what I'm looking for, thank you for help me.
0
Daniel Silva Everything is correct :)) Just do this :
console.log(pessoaA.nome);
console.log(pessoaA.sobrenome);
When you make an object, use the '.' (dot) to access a method or a property from the object :))
0
Daniel Silva If this is the case, then do this :
console.log(pessoaA.nomeCompleto());