DEV Community

Hardik Mirg
Hardik Mirg

Posted on

Escape Sequence Characters in JavaScript

Escape Sequence Characters

Escape Sequence Characters, as the name suggests, is used to escape a particular sequence or to display special characters. They can also be used withing strings.

  • \' Single quote
  • \" Double Quoted
  • \ Backslash
  • \b backspace
  • \f form feed
  • \n newline
  • \r carriage return
  • \t horizontal tabulator
  • \v vertical tabulator

Hope you learned something useful today! Peace Out ✌️

Top comments (0)