Here's an example:
var escapedString = 'I can't believe it!'; console.log(escapedString); // Output: I can't believe it!
In the above code, the backslash () before the apostrophe in the
I can't believe it! string is used to escape the character to prevent it from being interpreted as the end of the string.