I want to know how to make string interpolation like in Ruby but in Javascript
name = "world"
puts "Hello, #{name}!"
>Solution :
You can use template literals by using ` (sorry, can’t put it in block code) instead of " or ':
let name = "world";
console.log("Hello, " + name); // Classical way
console.log(`Hello, ${name}`); // With template literals