I am making a popular 'fullname' attempt 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 variable 'fullname' in the initial definition of var 'person'?