In programming a variable's data type is specified as what kind of data is stored in a particular variable.
Literals are a special class of data type, and they cover those values that are fixed.
Example-
thisDay = "What is the festival today";
here is the text "What is the festival today" is a literal string value.
JavaScript supports three kinds of literal datatypes :
Numeric Literals
String Literals
Boolean Literals