Example 1 — Windows Path Without Double Escapes
Write a path with single backslashes — no \\\\ noise.
const filePath = String.raw`C:\Development\profile\about.html`;
console.log(`The file was uploaded from: ${filePath}`);
// The file was uploaded from: C:\Development\profile\about.html How It Works
- Tag the template.
String.rawsits before the backticks. - Keep each backslash.
\D,\p, and\astay as written — not escapes. - Compare to a normal string. Without raw you would need
"C:\\Development\\...". - Log the path. The outer template only interpolates
filePath; the path itself is already raw.

