xxxxxxxxxx
JS Escape Characters
\' — Single quote
\" — Double quote
\\ — Backslash
\b — Backspace
\f — Form feed
\n — New line
\r — Carriage return
\t — Horizontal tabulator
WebsiteSetup.org - Beginner’s Javascript Cheat Sheet 7
\v — Vertical tabulator
xxxxxxxxxx
\b Backspace
\f Form Feed
\n New Line
\r Carriage Return
\t Horizontal Tabulator
\v Vertical Tabulator
\' Single quote
\" Double quote
\\ Backslash
xxxxxxxxxx
const name = 'My name is \'Peter\'.';
console.log(name);
//Here are other ways that you can use \:
Code Output
\" include double quote
\\ include backslash
\n new line
\r carriage return
\v vertical tab
\t horizontal tab
\b backspace
\f form feed
xxxxxxxxxx
// What are escape characters in javascript
Escape characters (Backslash) is used when working with special characters like single quotes, double quotes, apostrophes, and ampersands. Place backslash before the characters to make it display.
console.log("This is \+ plus character") // This is + plus character
xxxxxxxxxx
curl -X POST https://webhook.ptmindra.net/TTIIntegrations/Home/MJDInstall --data '{"hostname":"dcme-npro-opt-demo-ce-lpb-01","ip":"10.87.18.5","user":"asitti","pass":"Indra.TTI20","os":"linux","client":"INDRA - INF. COMPARTIDA","mjd_install":true,"zabbix_install":true,"user_create":true,"patch_apply":true}'