Q:

Which part of a Javascript statement is literal?

I know that fixed values are literals, and variable values are variables. If I have a simple statement such as:
var car = "Audi";

does it contain a literal? To which part of the statement is the variable applied? Is it "Audi", as that can be changed to another value in another function? Or is it 'car', as the variable name can be changed similarly?

A:

The term "literal" refers to the notation that you use to represent the value that you're assigning to the variable. It does not refer to the value itself, but the way it is written in code.
So in your simple example, the string value "Audi" is assigned to the variable car by writing the literal word "Audi" in double quotes on the right hand side of the expression. The word "car" in your code is an identifier, rather than a literal, as it identifies the variable by its name.

