Home  • Programming • JavaScript

JavaScript Literals

4202 Literals: The raw data that make up the root of data types are called "literals". You use literals to represent values in JavaScript. These are fixed values, not variables, that you literally provide in your script 1. Primitive literals a. String literals: 1) Any set of characters placed in quotation marks (single or double) make up a string literal. 2) The escape sequence:
CharecterMeaning
Backspace
Form feed
New line
Carriage return
Tab
Vertical tab
Apostrophe or single quote
Double quote
Backslash character
XXX
The character with the Latin-1 encoding specified by up to three octal digits XXX between 0 and 377. For example,

Comments 0


Copyright © 2024. Powered by Intellect Software Ltd