diff --git "a/Retos/Reto #24 - CIFRADO C\303\211SAR [F\303\241cil]/javascript/giovanyosorio.js" "b/Retos/Reto #24 - CIFRADO C\303\211SAR [F\303\241cil]/javascript/giovanyosorio.js" new file mode 100644 index 0000000000..7b8458bf5e --- /dev/null +++ "b/Retos/Reto #24 - CIFRADO C\303\211SAR [F\303\241cil]/javascript/giovanyosorio.js" @@ -0,0 +1,50 @@ +function cifrar(palabra, clave){ + let letra,respuesta="" + let alfabeto = 'abcdefghijklmnopqrstuvwxyz'; + let cifrado=alfabeto.slice(-clave) + console.log(cifrado) + cifrado+=alfabeto.slice(0,alfabeto.length-clave) + console.log("cifrado "+ cifrado) + console.log(palabra.length) + + for(let i=0;i