+ 5

Why only \'single quote, \"double quote and \\backslash work while others don't. In your chapter data type/strings/codes

In your lesson of java script - data type/strings I checked all given [\marks] in above coding but only three worked while other five didn't work i dont know why? And please also answer how to use other five marks in js.

10th Oct 2019, 5:27 AM
BlackShadow334
BlackShadow334 - avatar
1 ответ
+ 1
The other escaped characters are control characters. They were not meant for web (HTML). They make more sense in console app. The only one we can obviously see is the \n character, and even this can be visible only in alert message.
11th Oct 2019, 12:55 PM
Ipang