var s1 = `string text`;console.log(s1);console.log(typeof(s1));var s2 =`text line1 text line2`;console.log(s2);// trueconsole.log('\`' === '`');var a = 1, b = 2;console.log(`sum is ${a + b} \n sub is $(b - a)`);// template strings with tagvar a = 5, b = 10;function tag(strings, ...values){ // console.log(strings); // console.log(strings.length); console.log(strings[0]); console.log(strings[1]); console.log(strings[2]); console.log(values[0]); console.log(values[1]); return "something";}//foo === 'something'var foo = tag`hello ${a + b} world ${a * b}`;function template(strings, ...values){ console.log(strings); console.log(values);}template`${0}${1}${0}`;