JavaScript Strings
<!DOCTYPE html> <html> <body> <h2>Interpolation vs concatenation</h2> <script> let name = "Sam"; let role = "developer"; // Old style with the + operator let oldWay = "Hi " + name + ", the " + role; // Template literal let newWay = `Hi ${name}, the ${role}`; console.log(newWay); // Hi Sam, the developer </script> </body> </html>