create string templates javascript code example
Example 1: es6 string templates
const subject = 'world';
console.log(`hello ${subject}`);
// output = 'hello world'
Example 2: javascript template string
const classes = `header ${ isLargeScreen() ? '' :
`icon-${item.isCollapsed ? 'expander' : 'collapser'}` }`;