Template literals

Template literals in ES6 allows us to embed expressions to our string literals. We can use multi-line strings and string interpolation features with them. Template literals are enclosed by the back-tick (` `) instead of double or single quotes. var message = `single line string`; console.log(message); // single line string We can include place holders for…

%d bloggers like this: