// Function to greet a user
function greet(name) {
console.log("Hello, " + name + "!");
}
// Example usage
greet("Alice"); // Output: Hello, Alice!
To save your code, press Ctrl + S on Windows or Cmd + S on Mac.
When you run the above code, you should see the following output in the console:
Hello, Alice!