DEV Community

David Newberry
David Newberry

Posted on

Tagged String Literals

I love seeing a line of code and thinking, I can not parse that. And then learning to parse it.

This is valid JavaScript:

JavaScript code: console.log raw `foo` endraw

This is an instance of using a tagged template string.

This works too:

Another example of using tagged template strings

These examples are from MDN. Learn more there. I have no use for this knowledge right now, but one day I may!

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay