What is the easiest / most concise way to inject values into a string without using a RegEx expression or complex function?
For example, this:
var a = 'cats';
var b = 'dogs';
var result = String.format('%a and %b living together', a, b);
console.log(result);
... should yield ...
cats and dogs living together
I'm coming from the C# world where this is ridiculously easy. Every search on SO turns up some type of overcomplicated RegEx expression or replace function.