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

Want to kickstart your project?Use the new AI Studio to create your code