Holaa ;) este es mi solucion para las actividades de la segunda seccion del curso: Logica de programacion parte 2
"use strict";
// Activity #1
function showMsg() {
console.log(`Hello world!`);
}
showMsg();
// Activity #2
const showMsgArg = function (name) {
console.log(`Hi, ${name}!`);
};
showMsgArg(`Kevin`);
// Activity #3
const doubleNumber = (x) => x * 2;
console.log(doubleNumber(10));
// Activity #4
function promThreeNumbers(a, b, c) {
return (a + b + c) / 3;
}
console.log(promThreeNumbers(10, 8, 10));
// Activity #5
const returnMaxNumber = function (num1, num2) {
return num1 > num2 ? num1 : num2;
};
console.log(returnMaxNumber(7, 8));
// Activity #6
const multiply = (x) => x * x;
console.log(multiply(10));