Functions package logic into a reusable block. This lesson keeps the goal small: write one greeting function and prove that it works for two different names.
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet('Alice'));
Your function should accept a name parameter and return a string.