-1
This is what I need to do:
1 - Create a function called tamanhoNomeCompleto
2 - I received name and surname as parameter, ie two parameters
3 - This function will return the full size, counting an extra space to separate both
4 - I’m using the length
(length) to count letters and spaces
5 - I am passing as parameter to string 'Juan Perez' <= note that there is a space between the names
6 - Precise execution of the function tamanhoNomeCompleto
me return 10 <= number of characters and space in 'Juan Perez'
I did the following way, but my result is Nan. I wonder what is wrong?
function tamanhoNomeCompleto(nome,sobrenome) {
return ('Juan'.lenght+' '.lenght+'Perez'.lenght);
}
tamanhoNomeCompleto('Juan','Perez');
Resolved issue. I understood your logic. Thank you Mineiro !
– Marcelo Maciel