2
function tamanhoNomeCompleto(a,b){
var tNC = a.length + " ".length + b.length;
return tNC;
}
tamanhoNomeCompleto("Paulo","Paulada");
How do I put the tNC
in the return
?
'Cause I’m getting this:
tamanhoNomeCompleto
uses unnecessary local variables you can return the expression directly
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site
– Maniero