Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #update #function #accept #displayed #JavaScript
ADD COMMENT
Topic
Name
6+3 =