We know that you have used console.log() statement quite a lot of times by now. Do you feel any hassle when you want to print text and variables, especially when you are using commas, spaces and mixing string literals with variables? You have to use the concatenation operator and then to concatenate the literals with variables. Well, there’s a better way of doing this in ES6. Let’s explore it in the next video.
Well that was surely an easy way of writing strings, wasn’t it? And the fact that you don’t have to use newline character to get to new line and instead just type as you do normally is quite helpful. Do remember that the template literals must be wrapped inside the back-ticks , which are different from single quotes ‘’ and double quotes “”.