Generation

generate functionMon, 20 Mar 2023

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; }; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant