📜  如何更新函数以接受名称并将其显示在 JavaScript 代码示例中

📅  最后修改于: 2022-03-11 15:02:38.139000             🧑  作者: Mango

代码示例1
function displayGreeting(name) {
  const message = `Hello, ${name}!`;
  console.log(message);
}