Language - Literal Value

> Code - (Programming|Computer) Language > Code - Grammar / Syntax (Lexical)

1 - About

A literal value stands alone without being stored in a variable.

Values that are included directly in the source code are called literals

string literals are surrounded by double quotes (“…”) or single quotes ('…').

Advertising

3 - Example

2 in the below statement is a literal value

x = y + 2;