function welcomeMessage(){
console.log('Olá, mundo!');
}
welcomeMessage();
function nameGreeting(name){
console.log (`Ola, ${name}!`);
}
nameGreeting("Valeria");
function calculateDoubleNumber(number){
return number * 2;
}
let doubleNumberResult = calculateDoubleNumber(20);
console.log (doubleNumberResult);
function calculateAverage(a, b, c){
return (a + b + c) / 3;
}
let average = calculateAverage(3, 6, 9);
console.log(average);
function calculateBiggerNumber(a,b){
return (a > b);
}
let biggerNumber = calculateBiggerNumber(1965, 1979)
console.log(biggerNumber);
//ou
function findGreaterNumber(a, b) {
return (a > b ? a : b);
}
let greaterNumber = findGreaterNumber(11, 9);
console.log(greaterNumber);
function square(number) {
return (number * number);
}
let result = square(6);
console.log(result);