3
I am making an attempt to 'name' popular with the result of the first two variables, but without success.
var pessoa = { nome: "Joao", sobrenome: "Silva", nomecompleto : nome + sobrenome };
alert(pessoa.nomecompleto);
Uncaught Referenceerror: name is not defined
Is there any way to get the expected result of the full name variable in the initial definition of var 'person'?