node js variable inside string

// Step 1: Declare a variable
const name = "John";

// Step 2: Create a string with a variable inside using template literals
const greeting = `Hello, ${name}!`;

// Step 3: Print the result
console.log(greeting);