diff --git a/ejercicios.js b/ejercicios.js index aafdeb6..dfa1555 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -38,4 +38,9 @@ function multiplosClasico() { multiplosClasico(); // ejercicio 6 let miHuerto = ["Tomate","Lechuga","Cebolla"]; - for (verduras of miHuerto) {console.log(verduras)}; \ No newline at end of file + for (verduras of miHuerto) {console.log(verduras)}; +// ejercicio 7 +function presentarse (nombre1,edad1) { +return `Me llamo ${nombre1} y tengo ${edad1} aƱos.` +}; +console.log(presentarse("Fede","45")); \ No newline at end of file