JAVASCRIPT LITERAL VALUES
Literal values are the ones you type into mathematical
or string expressions. For example 23 (an integer), 12.32E23 (a floating
point), or 'flopsy the Hamster' (a string).
String
literals can be enclosed by either single or double quotes. For
example: 'literal string' "literal
string"
'literal
string with "double quotes" inside'
There are
five special characters you can use in literal strings. These are listed in the
table below.
Reference Meaning
\b Backspace
\f Form
Feed
\n New
Line
\r Carriage
Return
\t Tab
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.