diff --git a/ejercicios.js b/ejercicios.js index 352eaf3..8e1c5d1 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -30,4 +30,9 @@ for (let i=3; i < maximo;i = i+3){ let frutas = ["Manzana", "Banana", "Frutilla"]; for (let fruta of frutas) { console.log(fruta); -} \ No newline at end of file +} + +function presentarse(nombre, edad){ + return ("me llamo "+nombre+" y tengo "+ edad+ " aƱos.") +} +console.log(presentarse("Alejo",20)) \ No newline at end of file