Literals/String: Difference between revisions

add JavaScript
(→‎{{header|Lisaac}}: more character syntax)
(add JavaScript)
Line 317:
Null characters ('\0') are printed as spaces in Java. They will not terminate a String as they would in C or C++. So, the String "this \0is \0a \0test" will print like this:
this is a test
 
=={{header|JavaScript}}==
A JavaScript string is a sequence of zero or more characters enclosed in either 'single quotes' or "double quotes". There are five escape sequences: newline "\n", carriage return "\r", form feed "\f", horizontal tab "\t", backspace "\b".
 
=={{header|LaTeX}}==
Anonymous user