+ 1

I really don't know why the output of this code isn't --> "Carlos" "Daniel"

https://code.sololearn.com/Wqahf71vjT76/?ref=app

10th May 2020, 2:56 PM
Daniel Silva
Daniel Silva - avatar
5 odpowiedzi
10th May 2020, 5:35 PM
Ore
Ore - avatar
+ 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.
10th May 2020, 3:06 PM
Daniel Silva
Daniel Silva - avatar
+ 1
Ore Adeleye Thanks, that is what I'm looking for, thank you for help me.
10th May 2020, 5:44 PM
Daniel Silva
Daniel Silva - avatar
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 :))
10th May 2020, 2:59 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
0
Daniel Silva If this is the case, then do this : console.log(pessoaA.nomeCompleto());
10th May 2020, 3:24 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar