diff --git a/Roadmap/02 - FUNCIONES Y ALCANCE/javascript/cmejiajulian.js b/Roadmap/02 - FUNCIONES Y ALCANCE/javascript/cmejiajulian.js index c43f5baad9..acf0b9a5d6 100644 --- a/Roadmap/02 - FUNCIONES Y ALCANCE/javascript/cmejiajulian.js +++ b/Roadmap/02 - FUNCIONES Y ALCANCE/javascript/cmejiajulian.js @@ -207,17 +207,19 @@ console.log( 'texto'.length); let funTwo = (num1, num2) => { let n1 = parseFloat(num1); let n2 = parseFloat(num2); - + let contador = 0 for (let i = 1; i <= 100; i++) { if (i % 3 == 0 && i % 5 == 0) { - console.log(num1, num2); + console.log(num1+' '+ num2); } else if (i % 3 == 0) { console.log(num1); } else if (i % 5 == 0) { console.log(num2); } else { console.log(i); + contador++ } } + return contador } -funTwo('num1','num2'); \ No newline at end of file +console.log(funTwo('num1','num2')); \ No newline at end of file