diff --git a/ejercicios.js b/ejercicios.js index 568c239..81c6d27 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -42,4 +42,10 @@ const frutas = ["manzana", "banana", "pera"]; for (let fruta of frutas) { console.log(fruta); -} \ No newline at end of file +} +// Punto 7 +function presentarse(nombre, edad) { + return "Me llamo " + nombre + " y tengo " + edad + " aƱos."; +} + +console.log(presentarse("Sergio", 33)); \ No newline at end of file