Skip to content

Commit a3436d5

Browse files
committed
#2 - Javascript
1 parent b698c33 commit a3436d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Roadmap/02 - FUNCIONES Y ALCANCE/javascript/cmejiajulian.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,19 @@ console.log( 'texto'.length);
207207
let funTwo = (num1, num2) => {
208208
let n1 = parseFloat(num1);
209209
let n2 = parseFloat(num2);
210-
210+
let contador = 0
211211
for (let i = 1; i <= 100; i++) {
212212
if (i % 3 == 0 && i % 5 == 0) {
213-
console.log(num1, num2);
213+
console.log(num1+' '+ num2);
214214
} else if (i % 3 == 0) {
215215
console.log(num1);
216216
} else if (i % 5 == 0) {
217217
console.log(num2);
218218
} else {
219219
console.log(i);
220+
contador++
220221
}
221222
}
223+
return contador
222224
}
223-
funTwo('num1','num2');
225+
console.log(funTwo('num1','num2'));

0 commit comments

Comments
 (0)