punto 7: funcion presentarse con parametros

This commit is contained in:
2026-04-28 19:56:16 -03:00
parent a1582f7e17
commit a79be06ead

View File

@@ -42,4 +42,10 @@ const frutas = ["manzana", "banana", "pera"];
for (let fruta of frutas) { for (let fruta of frutas) {
console.log(fruta); console.log(fruta);
} }
// Punto 7
function presentarse(nombre, edad) {
return "Me llamo " + nombre + " y tengo " + edad + " años.";
}
console.log(presentarse("Sergio", 33));