how to update a function to accept a name and have it displayed in JavaScript code example
Example: how to update a function to accept a name and have it displayed in JavaScript
function displayGreeting(name) {
const message = `Hello, ${name}!`;
console.log(message);
}