function tienenMismaLongitud(str1, str2) { // Retorna true si los dos strings tienen la misma longitud. // De lo contrario, retorna false. // Tu código: }
function tienenMismaLongitud(str1, str2) { // Retorna true si los dos strings tienen la misma longitud. // De lo contrario, retorna false. // Tu código: if (str1.length === str2.length) { return true; } else { return false; }; }