+ 15
What does \t,\r and \f do?
7 Respostas
+ 9
Thanks
+ 8
Can u give example?
+ 7
\t is used for tab or space.
\f is a form feed character.
√$√€¶(°$°) , I don't know much about JavaScript so I am giving you reference:
https://www.w3schools.com/jsref/jsref_regexp_formfeed.asp
https://www.w3schools.com/JSREF/jsref_regexp_tab.asp
https://www.w3schools.com/jsref/jsref_regexp_carriagereturn.asp
+ 7
Ha ,thank u😊
+ 3
\t = tab
+ 2
They're called escape characters. You use them in strings with quotes.
\n : new line
\r : return
\ : tab
E.g.
let sentence="Loren blalalala \n Ipsum omlet"
console.log(sentence)
This will show Ipsum on a new line.
+ 2
\n-new line
\t-new tab
\f- form feed
\r- return