JavaScript Introducing ES2015 ES2015 Basics Template Strings

why there is a t on the html code?

I noticed that the html code between the template literal has a prefix of "t".

<table class="table"> <thead> <tr> <td>Name</td> <td>Followers</td> </tr> </thead> <tbody> <tr> <td>${}</td> <td></td> </tr> </tbody> </table>

Can somebody explain me the reason for the prefix of t? Thanks

1 Answer

Brendan Whiting
Brendan Whiting
Front End Web Development Techdegree Graduate 84,616 Points

The t is short for table: thead stands for table header, tr stands for table row, td stands for table data.