Windows paths and regular expressions are full of backslashes, and normal strings make me double every one of them. String.raw lets you leave them alone.
const filePath = String.raw`C:\Development\profile\about.html`;
console.log(filePath); // C:\Development\profile\about.html
That example is from MDN. You use it as a tag in front of a template literal. Escape sequences such as \n are not processed, so String.raw`Hi\n` holds a backslash and an n, two characters, not a newline.
It also makes regular expressions built from strings easier to read:
new RegExp(String.raw`https://developer\.mozilla\.org/${path}`);
Substitutions with ${} still work, so a dynamic part can sit in the middle. It has worked across browsers since September 2015.
Caveats from MDN. A single backslash at the very end escapes the closing backtick, and the rest of your code ends up inside the string. Write two backslashes there and both will be kept. The same applies to \${ and \`: they prevent interpolation or end the string, but the backslash stays in the result. To get a plain dollar sign before a brace, use a substitution: String.raw`Hi ${"$"}{name}!`.
My rule of thumb: use String.raw when the text is mostly backslashes, like a Windows path or a pattern, and a normal string when it is not. Mixing both in one line gets confusing quickly.
Further reading: MDN: String.raw()