0
What is a backslash for?
Won't the text be the same without the backslash(\)?
4 Answers
+ 2
The backslash escape character turns special characters into string characters, and can also be used to insert other special characters in a string.
\' single quote
\" double quote
\\ backslash
\n new line
\r carriage return
\t tab
\b backspace
\f form feed
+ 2
Backslash is used for escaping illegal characters like " and ', because without the backslash they can end a string and leave some of the text outside the quotes, what will cause errors.
0
Zen got it down pretty straight forward
0
Thanks For Your Answers!