Table of Contents

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 ('…').

Example

2 in the below statement is a literal value

x = y + 2;