Is it possible to create a template literal from a normal string? e.g. from a definition in some JSON.
var foo = 'world';
var string = "hello ${foo}";
var string2 = `${string}`; // "hello ${foo}" - but I want "hello world"
Is it possible to create a template literal from a normal string? e.g. from a definition in some JSON.
var foo = 'world';
var string = "hello ${foo}";
var string2 = `${string}`; // "hello ${foo}" - but I want "hello world"