feat: add presentarse function
This commit is contained in:
@@ -47,4 +47,9 @@ const fruits = ["Manzana", "Banana", "Pera"]
|
|||||||
|
|
||||||
for (const fruit of fruits) {
|
for (const fruit of fruits) {
|
||||||
console.log(fruit);
|
console.log(fruit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sexto ejercicio:
|
||||||
|
|
||||||
|
const presentation = (a, b) => `Hola, mi nombre es ${a} y tengo ${b} años.`;
|
||||||
|
console.log(presentation(name, age));
|
||||||
Reference in New Issue
Block a user